{"id":28555861,"url":"https://github.com/totaljs/edbms","last_synced_at":"2025-07-02T21:32:35.209Z","repository":{"id":57232867,"uuid":"179752147","full_name":"totaljs/edbms","owner":"totaljs","description":"Elastic DBMS module","archived":false,"fork":false,"pushed_at":"2019-08-31T09:13:11.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T06:08:10.754Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/totaljs.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}},"created_at":"2019-04-05T20:43:30.000Z","updated_at":"2021-10-13T12:47:22.000Z","dependencies_parsed_at":"2022-09-04T21:20:36.728Z","dependency_job_id":null,"html_url":"https://github.com/totaljs/edbms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/totaljs/edbms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fedbms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fedbms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fedbms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fedbms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totaljs","download_url":"https://codeload.github.com/totaljs/edbms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totaljs%2Fedbms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263218319,"owners_count":23432472,"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":[],"created_at":"2025-06-10T06:08:05.922Z","updated_at":"2025-07-02T21:32:35.180Z","avatar_url":"https://github.com/totaljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node ElasticSearch Database Management System\n\n[![Professional Support](https://www.totaljs.com/img/badge-support.svg)](https://www.totaljs.com/support/) [![Chat with contributors](https://www.totaljs.com/img/badge-chat.svg)](https://messenger.totaljs.com)\n\n- installation `$ npm install edbms`\n\n## Initialization\n\n```javascript\nconst EDBMS = require('edbms');\nEDBMS.url('http://localhost:9200');\n```\n\n## Examples\n\n```javascript\nvar db = EDB();\n\n// Listing - Performs index/_search\nvar builder = db.list('index');\nbuilder.scope('query.bool.must[]');\nbuilder.push('match', { title: 'my_search_phrase' });\nbuilder.callback(function(err, response) {\n    // ...\n});\n\n// Read single document\ndb.read('index', 'type', '_id').callback(function(err, response) {\n    // ...\n});\n\n// Create a new document and manual refresh\ndb.insert('index', 'type', model).refresh().callback(function(err, response) {\n    // ...\n});\n\n// Update document\ndb.update('index', 'type', '_id', model).callback(function(err, response) {\n    // ...\n});\n\n// Partial update\ndb.modify('index', '_id', model).callback(function(err, response) {\n    // ...\n});\n\n// Delete document\ndb.delete('index', 'type', 'id').callback(function(err, response) {\n    // ...\n});\n\n// Delete by query\nvar builder = db.delete('index');\nbuilder.scope('query.bool.must[]');\nbuilder.push('term', { userid: 5 });\nbuilder.callback(function(err, response) {\n    // ...\n});\n\n// Custom query\n// Available methods: POST (default), GET, PUT, DELETE\nvar builder = db.exec('GET /YOUR-INDEX/TYPE/_search');\nbuilder.scope('query.bool.must[]');\nbuilder.push('term', { userid: 5 });\nbuilder.callback(function(err, response) {\n    // ...\n});\n\n// Refresh index\ndb.refresh('index').callback(function(err, response) {\n    console.log(err, response);\n});\n\n// Count of documents\nvar builder = db.count('index');\nbuilder.scope('query.bool.must[]');\nbuilder.push('term', { userid: 5 });\nbuilder.callback(function(err, response) {\n    // ...\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotaljs%2Fedbms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotaljs%2Fedbms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotaljs%2Fedbms/lists"}