alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Gitlab::Database.bulk_insert
Bulk inserts a number of rows into a table, optionally returning their
IDs.
table - The name of the table to insert the rows into.
rows - An Array of Hash instances, each mapping the columns to their
values.
return_ids - When set to true the return value will be an Array of IDs of
the inserted rows, this only works on PostgreSQL.
disable_quote - A key or an Array of keys to exclude from quoting (You
become responsible for protection from SQL injection for
these keys!)Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Database-bulk_insert-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Database.bulk_insert"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Database-bulk_insert-for-pr
hub pull-request
# Celebrate!