{"id":22385298,"url":"https://github.com/acoshift/nepdb","last_synced_at":"2025-03-26T20:24:06.415Z","repository":{"id":73779653,"uuid":"46256611","full_name":"acoshift/nepdb","owner":"acoshift","description":"[Deprecated, move to nepdb2] Database with Authenticate and Authorization","archived":false,"fork":false,"pushed_at":"2016-01-15T15:56:58.000Z","size":141,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T02:20:20.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/acoshift.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-16T06:37:00.000Z","updated_at":"2017-05-31T16:36:04.000Z","dependencies_parsed_at":"2023-03-18T04:15:25.826Z","dependency_job_id":null,"html_url":"https://github.com/acoshift/nepdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acoshift%2Fnepdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acoshift%2Fnepdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acoshift%2Fnepdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acoshift%2Fnepdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acoshift","download_url":"https://codeload.github.com/acoshift/nepdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245728893,"owners_count":20662768,"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":"2024-12-05T01:22:44.670Z","updated_at":"2025-03-26T20:24:06.399Z","avatar_url":"https://github.com/acoshift.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nepdb\n\n## Readme was out of date\n\n## Getting started\n\n// TODO\n```\n$ git clone https://github.com/acoshift/nepdb.git\n$ cd nepdb\n$ npm install\n$ gulp\n$ mongod --dbpath=./db \u0026\n$ node build/index.js\n```\n\n## API Docs\n\n### Create\n`$create db.name(__documents__)`\n\n### Create single document\n`create db.name(__document__)`\n\n### Read\n`$read db.name(__filter__)`\n\n### Read single document\n`read db.name(__filter__)`\n\n### Update\n`$update db.name(__filter__, __document__)`\n\n### Update single documents\n`update db.name(__filter__, __document__)`\n\n### Delete\n`$delete db.name(__filter__)`\n\n### Delete single document\n`delete db.name(__filter__)`\n\n---\n\n## Example\n\nCreate one document:\n```\ncreate stock.product(name: \"p1\", price: 100)\n```\n\nCreate multiple documents\n```\n$create stock.product(\n  { name: \"p1\", price: 100 },\n  { name: \"p2\", price: 150 },\n  { name: \"p3\", price: 100 }\n)\n```\nor\n```\n$create stock.product([\n  { name: \"p1\", price: 100 },\n  { name: \"p2\", price: 150 },\n  { name: \"p3\", price: 100 }\n])\n```\n\nRead documents\n```\n$read stock.product(name: \"p1\")\n```\n\nRead documents with paging\n\n```\n$read stock.product({price: 100}, {limit: 10, skip: 20})\n```\n\nRead single document\n```\nread stock.product(name: \"p1\")\n```\n\nUpdate single document\n```\nupdate stock.product(\n  { name: \"p1\" },\n  { $set: { name: \"p6\" } }\n)\n```\n\nUpdate all documents matched filter\n```\n$update stock.product(\n  { price: 100 },\n  { $inc: { price: 30 } }\n) {}\n```\n\n## Token\n```\n{\n  name,\n  pwd,\n  ns,\n  role,\n  iat,\n  exp\n}\n```\n\n## Reserved Collections\n\n### .db.users\n```\n{\n  _id,\n  name,\n  pwd,\n  role,\n  enabled\n}\n```\n### .db.roles\n```\n{\n  _id,\n  name,\n  dbs {\n    __db_name__ { c, r, u, d }\n  }\n}\n```\n\n### .db.logs\n```\n{\n  _id,\n  user,\n  q\n}\n```\n\n### .db.cors\n```\n{\n  _id,\n  domain,\n  ns\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facoshift%2Fnepdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facoshift%2Fnepdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facoshift%2Fnepdb/lists"}