https://github.com/jream/phalcon-batch
Batch Insert Addition
https://github.com/jream/phalcon-batch
Last synced: 10 months ago
JSON representation
Batch Insert Addition
- Host: GitHub
- URL: https://github.com/jream/phalcon-batch
- Owner: JREAM
- License: mit
- Created: 2014-03-08T17:41:13.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-08T17:46:43.000Z (over 12 years ago)
- Last Synced: 2025-06-01T10:43:14.489Z (about 1 year ago)
- Language: PHP
- Size: 129 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Phalcon Batch
=============
This is a simple addition to allow batch MySQL INSERT, and MySQL IGNORE INSERT.
## Install
I prefer to use a BaseController whereby all my controllers extend. I also do this
with a BaseModel, but I would suggest placing this in the BaseController.
setRows(['user_id', 'notification_id'])
->setValues([
[23,1],
[24,1],
[25,1],
[26,1],
[27,1],
[28,1],
[29,1],
[30,1],
])->insert();
This could also be a user component if you wanted.