sample-crystal-db_json
db_json sample application
Use ./db/seed-*.sh
scripts to initialize a sample database for each driver. Build and start the app with the database_url
as command line argument.
$ git clone https://github.com/bcardiff/sample-crystal-db_json.git
$ cd sample-crystal-db_json
$ ./db/seed-chinook.sh
$ crystal src/db_json.cr -- sqlite3://./db/chinook.db
Other connection strings
$ ./db/seed-sqlite3.sh
$ crystal src/db_json.cr -- sqlite3://./db/sqlite3.db
$ ./db/seed-mysql.sh
$ crystal src/db_json.cr -- mysql://root@localhost/db_json_sample
$ ./db/seed-pg.sh
$ crystal src/db_json.cr -- postgres://localhost/db_json_sample
Contributors
- bcardiff Brian J. Cardiff - creator, maintainer
Repository
sample-crystal-db_json
Owner
Statistic
- 7
- 0
- 0
- 0
- 4
- almost 8 years ago
- December 29, 2016
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 17:19:30 GMT
Languages