{"id":18274822,"url":"https://github.com/lucid-services/serviser-bookshelf","last_synced_at":"2025-04-09T03:44:29.953Z","repository":{"id":97511113,"uuid":"169544586","full_name":"lucid-services/serviser-bookshelf","owner":"lucid-services","description":"Integrates bookshelf ORM with serviser","archived":false,"fork":false,"pushed_at":"2019-03-11T17:24:54.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T22:23:59.789Z","etag":null,"topics":["bookshelfjs","serviser"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucid-services.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-07T09:04:38.000Z","updated_at":"2019-04-21T11:17:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e6801d1-6b65-4b3d-b5d2-69b2d758f944","html_url":"https://github.com/lucid-services/serviser-bookshelf","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucid-services%2Fserviser-bookshelf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucid-services%2Fserviser-bookshelf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucid-services%2Fserviser-bookshelf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucid-services%2Fserviser-bookshelf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucid-services","download_url":"https://codeload.github.com/lucid-services/serviser-bookshelf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974595,"owners_count":21026742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bookshelfjs","serviser"],"created_at":"2024-11-05T12:10:53.389Z","updated_at":"2025-04-09T03:44:29.925Z","avatar_url":"https://github.com/lucid-services.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nBookshelf with `registry` \u0026 `virtuals` \u0026 `visibility` \u0026 `pagination` \u0026 `paranoia` \u0026 `eloquent` plugins.  \n\n```javascript\nconst Service = require('serviser');\nconst config = require('serviser-config');\nconst bookshelfBuilder = require('serviser-bookshelf');\n\nconst bookshelf = bookshelfBuilder({/*knex options*/});\n\nconst service = new Service(config);\n\n//enables integrity inspection features\nservice.resourceManager.register('postgres', bookshelf);\n\n\n//instantiates model definitions and registers them with  the `registry` plugin interface\n//returns object with loaded models\nbookshelf.loadModels([\n    'path/to/directory/with/model/definitions'\n]);\n```\n\nModel definition example eg.: `lib/models/orm/user.js`  \n\n```javascript\n\nmodule.exports = function(bookshelf) {\n\n    return bookshelf.Model.extend({\n        tableName: 'user'\n    });\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucid-services%2Fserviser-bookshelf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucid-services%2Fserviser-bookshelf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucid-services%2Fserviser-bookshelf/lists"}