{"id":15973426,"url":"https://github.com/Caallum/quick.mongo","last_synced_at":"2025-10-20T14:31:45.191Z","repository":{"id":51315739,"uuid":"366160939","full_name":"Caallum/quick.mongo","owner":"Caallum","description":"This is a mongo db database connector with easy and simple functions.","archived":false,"fork":false,"pushed_at":"2021-06-13T17:27:37.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T05:21:14.000Z","etag":null,"topics":["database","mongodb","mongodb-atlas","mongoosejs","quick-db"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Caallum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-10T19:58:49.000Z","updated_at":"2022-06-16T21:24:09.000Z","dependencies_parsed_at":"2022-09-13T09:11:52.850Z","dependency_job_id":null,"html_url":"https://github.com/Caallum/quick.mongo","commit_stats":null,"previous_names":["tur-ph/quick.mongo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caallum%2Fquick.mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caallum%2Fquick.mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caallum%2Fquick.mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caallum%2Fquick.mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Caallum","download_url":"https://codeload.github.com/Caallum/quick.mongo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237348771,"owners_count":19295417,"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":["database","mongodb","mongodb-atlas","mongoosejs","quick-db"],"created_at":"2024-10-07T21:04:51.700Z","updated_at":"2025-10-20T14:31:39.939Z","avatar_url":"https://github.com/Caallum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quick.mongo\n\n\u003e Simple Database using MongoDB\n\u003e The name is a copy of `quick.db`, this uses the Mongo Atlas Database to store data though\n\n## Documentation\n\n### new Database()\n\n```js\nnew database(mongo url, options)\n```\n\nParameter | Type | Optional | Description\n--- | --- | --- | ---\nMongo URL | [URL](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_URL) | ✖ | The URL given to you by the MongoDB Atlas Connection\noptions | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | null | null\noptions.name | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | ✖ | The name of the collection you want to create\n\n#### Example\n\n```js\n  const quickMongo = require('@turph/quickmongo');\n  \n  const database = new quickMongo('{ INSERT MONGO URL HERE }', { name: 'database' });\n  db\n  .on('error', err =\u003e console.log(err))\n  .on('connected', info =\u003e console.log(info));\n```\n\nConstructor\n\n### database.set()\n\n\n```js\ndatabase.set(key, value)\n```\n\nParameter | Type | Optional | Description\n--- | --- | --- | ---\nKey | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | ✖ | The key of the value\nValue | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) / [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | ✖ | The value of the key you wish to set\n\n#### Example\n\n```js\nawait database.set('foo', 'fee');\n```\n\nReturns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)\u003e\n\n### database.get()\n\n\n```js\nawait database.get(key)\n```\n\nParameter | Type | Optional | Description\n--- | --- | --- | ---\nkey | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | ✖ | The key of that vakue you wish to find\n \n#### Example\n\n```js\nawait database.get('foo'); // fee\n```\n\nReturns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\u003e\n\n### database.search()\n\n\n```js\ndatabase.search(query)\n```\n\nParameter | Type | Optional | Description\n--- | --- | --- | ---\nquery | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | ✖ | The term you wish to search for\n\n#### Example\n\n```js\nawait database.search('foo');\n```\n\nReturns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)\u003e\n\n### database.find()\n\n\n```js\ndatabase.find(query)\n```\n\nParameter | Type | Optional | Description\n--- | --- | --- | ---\nquery | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | ✖ | The term you wish to search for\n\n#### Example\n\n```js\nawait database.find('foo');\n```\n\nReturns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)\u003e\n\n### database.all()\n\n\n```js\ndatabase.all()\n```\n\nParameter | Type | Optional | Description\n--- | --- | --- | ---\n | | | |\n\n#### Example\n\n```js\nawait database.all()\n```\n\nReturns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)\u003e\n\n### database.delete()\n\n\n```js\ndatabase.delete(key)\n```\n\nParameter | Type | Optional | Description\n--- | --- | --- | ---\nKey | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | ✖ | The key of the value you wish to delete\n\n#### Example\n\n```js\nawait database.delete('foo');\n```\n\nReturns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)\u003e\n\n### database.clear()\n\n```js\ndatabase.clear(key)\n```\n\nParameter | Type | Optional | Description\n--- | --- | --- | ---\nKey | [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) | ✖ | The key of the value you wish to clear from your database. Note: this will delete ALL matches so perform at your own risk\n\n#### Example\n\n```js\nawait database.clear('foo');\n```\n\nReturns [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)\u003c[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCaallum%2Fquick.mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCaallum%2Fquick.mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCaallum%2Fquick.mongo/lists"}