{"id":22356346,"url":"https://github.com/do-/node-doix-devextreme","last_synced_at":"2026-02-14T08:31:25.801Z","repository":{"id":219603956,"uuid":"749417248","full_name":"do-/node-doix-devextreme","owner":"do-","description":"doix binding for DevExtreme framefork","archived":false,"fork":false,"pushed_at":"2024-09-07T17:10:00.000Z","size":131,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T10:31:00.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/do-.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2024-01-28T14:28:09.000Z","updated_at":"2024-09-07T17:10:03.000Z","dependencies_parsed_at":"2024-01-28T17:26:10.392Z","dependency_job_id":"8505b1c4-44f6-4081-ba4e-deaa2d389609","html_url":"https://github.com/do-/node-doix-devextreme","commit_stats":null,"previous_names":["do-/node-doix-devextreme"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/do-/node-doix-devextreme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-%2Fnode-doix-devextreme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-%2Fnode-doix-devextreme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-%2Fnode-doix-devextreme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-%2Fnode-doix-devextreme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/do-","download_url":"https://codeload.github.com/do-/node-doix-devextreme/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-%2Fnode-doix-devextreme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29440311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-12-04T14:09:56.932Z","updated_at":"2026-02-14T08:31:25.784Z","avatar_url":"https://github.com/do-.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![workflow](https://github.com/do-/node-doix-devextreme/actions/workflows/main.yml/badge.svg)\n![Jest coverage](./badges/coverage-jest%20coverage.svg)\n\n`doix-devextreme` is a [DevExtreme](https://www.devexpress.com) adapter for the [doix](https://github.com/do-/node-doix) server platform.\n\nAs of this writing, it contains only a basic a translator of [AJAX requests](https://js.devexpress.com/jQuery/Documentation/ApiReference/Data_Layer/CustomStore/LoadOptions/) coming from `dxDataGrid` into [DbQuery](https://github.com/do-/node-doix-db/wiki/DbQuery) instances.\n\n# Installation\n```\nnpm install doix-devextreme\n```\n\n# Initialization\n`doix-devextreme` is a plug in for database clients, such as [DbClientPg](https://github.com/do-/node-doix-db-postgresql/wiki/DbClientPg). It can be attached to any database connection pool by calling the `plugInto` method:\n\n```js\nconst {DbPoolPg}   = require ('doix-db-postgresql')\nconst dx = require ('doix-devextreme')\n\nconst db = new DbPoolPg ({\n  db: conf.db,\n  logger: createLogger (conf, 'db'),\n})\n\ndx.plugInto (db)\n```\n\nAfter that, each `db` instance injected into a [Job](https://github.com/do-/node-doix/wiki/Job) will have the `dxQuery` method described in the next section.\n\n# Using in application code\nWith `doix-devextreme` plugged in, the `db` resource provides the `dxQuery` method having the same parameters as [DbModel.createQuery](https://github.com/do-/node-doix-db/wiki/DbModel#createquery):\n\n```js\nselect_users:    \n  async function () {\n    const {db} = this\n    const query = db.dxQuery ([['users']], {order: ['label']})\n    const list = await db.getArray (query)\n    return {\n      all: list, \n      cnt: list [Symbol.for ('count')], \n      portion: query.options.limit\n    }\n  }\n```\n\nIn fact, this is the `db.model.createQuery` call, but with some additions from `this.request.loadOptions`:\n* the `limit` and `offset` options are overridden with `take` and `skip` respectively;\n* the `order` list is replaced with the translated `sort`, if any (so the `order` passed in argument acts as a default value);\n* the 1st query table `filter` option is appended with the translated `filter`.\n\n# Limitations\n\nTo date, `IS NULL` predicates are never generated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-%2Fnode-doix-devextreme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdo-%2Fnode-doix-devextreme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-%2Fnode-doix-devextreme/lists"}