{"id":18274812,"url":"https://github.com/lucid-services/serviser-knex","last_synced_at":"2025-04-09T03:44:31.343Z","repository":{"id":43810178,"uuid":"169544360","full_name":"lucid-services/serviser-knex","owner":"lucid-services","description":"Integrates Knex sql query builder with serviser based services","archived":false,"fork":false,"pushed_at":"2023-01-11T04:18:31.000Z","size":126,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T22:23:56.241Z","etag":null,"topics":["knexjs","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}},"created_at":"2019-02-07T09:02:33.000Z","updated_at":"2022-02-18T00:08:04.000Z","dependencies_parsed_at":"2023-02-09T01:30:23.345Z","dependency_job_id":null,"html_url":"https://github.com/lucid-services/serviser-knex","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucid-services%2Fserviser-knex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucid-services%2Fserviser-knex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucid-services%2Fserviser-knex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucid-services%2Fserviser-knex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucid-services","download_url":"https://codeload.github.com/lucid-services/serviser-knex/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":["knexjs","serviser"],"created_at":"2024-11-05T12:10:51.681Z","updated_at":"2025-04-09T03:44:31.325Z","avatar_url":"https://github.com/lucid-services.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/lucid-services/serviser-knex.svg?branch=master)](https://travis-ci.org/lucid-services/serviser-knex) [![npm version](https://badge.fury.io/js/serviser-knex.svg)](https://www.npmjs.com/package/serviser-knex)  \n\n[serviser](https://github.com/lucid-services/serviser) plugin which integrates [Knex](https://github.com/tgriesser/knex)\n\n```javascript\nconst Service = require('serviser');\nconst config = require('serviser-config');\nconst knexBuilder = require('serviser-knex');\n\nconst knex = knexBuilder({/*knex options*/});\n\nconst service = new Service(config);\n\n//enables integrity inspection features\nservice.resourceManager.register('postgres', knex);\n```\n\nDefine minimum required db server version:\n----------------------------------------\n```javascript\nconst knex = knexBuilder({\n    client: 'postgres',\n    version: '10.5.0'\n});\n```\n\nif the defined version requirement isn't satisfied, the service initialization\nprocess will fail with an error.\n\nSQL query debugging:\n---------------------\n```bash\n\u003e export SQL_DEBUG=1\n\u003e npm start\n```\n\nTests\n-----\n\n\u003e npm test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucid-services%2Fserviser-knex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucid-services%2Fserviser-knex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucid-services%2Fserviser-knex/lists"}