Download server/src/initDb.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 231 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/src/initDb.js
- Command line
-
hf download hf://spaces/linuxrun/deer/server/src/initDb.js
-
curl -L -o initDb.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/server/src/initDb.js
231 Bytes
| const { Model } = require('objection'); | |
| const Knex = require('knex'); | |
| function initDb() { | |
| const knexConfig = require('../knexfile'); | |
| const knex = Knex(knexConfig); | |
| Model.knex(knex); | |
| return knex; | |
| } | |
| export default initDb; | |