{"id":16181332,"url":"https://github.com/kaosat-dev/cycle-tingodb-driver","last_synced_at":"2025-04-07T12:18:16.518Z","repository":{"id":143422217,"uuid":"47878016","full_name":"kaosat-dev/cycle-tingodb-driver","owner":"kaosat-dev","description":"tingoDB storage driver for cycle.js","archived":false,"fork":false,"pushed_at":"2016-02-14T11:20:07.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T14:52:53.217Z","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/kaosat-dev.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":"2015-12-12T12:50:45.000Z","updated_at":"2016-02-14T10:05:32.000Z","dependencies_parsed_at":"2023-05-01T21:19:20.937Z","dependency_job_id":null,"html_url":"https://github.com/kaosat-dev/cycle-tingodb-driver","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaosat-dev%2Fcycle-tingodb-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaosat-dev%2Fcycle-tingodb-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaosat-dev%2Fcycle-tingodb-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaosat-dev%2Fcycle-tingodb-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaosat-dev","download_url":"https://codeload.github.com/kaosat-dev/cycle-tingodb-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247648977,"owners_count":20972945,"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-10-10T06:24:40.607Z","updated_at":"2025-04-07T12:18:16.483Z","avatar_url":"https://github.com/kaosat-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## cycle-tingoDB-driver\n\n[![GitHub version](https://badge.fury.io/gh/kaosat-dev%2Fcycle-tingodb-driver.svg)](https://badge.fury.io/gh/kaosat-dev%2Fcycle-tingodb-driver)\n\nA [tingoDB](http://www.tingodb.com/) driver for cycle.js\n\n\n##Notes:\n\n- for **server side** use only !\n\n\n##Using:\n\n\n#### Setup:\n\n```js\nlet drivers = {\n  db      : makeTingoDBDriver(\"path/to/my/database\")\n}\n\nCycle.run(main, drivers)\n```\n\n#### In action:\n\n```js\n  \n  function main(sources) {  \n\n    sources.db\n      .filter(res$ =\u003e res$.query.method === 'find' \u0026\u0026 id===72 )// we wanted to find something in the database, and the query had id 72\n      .mergeAll() // flattens the metastream\n      .forEach(function(result){\n        console.log(\"query result\",result)// \n      })\n    \n    //Use this type of query to insert data {method:'insert', collectionName:\"testCollection\", data: {foo:42,bar:\"someText\"} }\n\n    const dbQueries$  = Rx.Observable.interval(1000)\n      .map(() =\u003e {//get data from database\n        return {method:'find', id:72, collectionName:\"testCollection\", query:{foo:42}, options:{toArray:true} }\n      })\n   \n    return {\n      db: dbQueries$\n    }\n  }\n```\nFor a more advanced usage, check the [tests](https://github.com/kaosat-dev/cycle-tingodb-driver/blob/master/test/index.js) and the [documentation](https://github.com/kaosat-dev/cycle-tingodb-driver/blob/master/docs/api.md).\n\n\n## LICENSE\n\n[The MIT License (MIT)](https://github.com/kaosat-dev/cycle-tingodb-driver/blob/master/LICENSE)\n\n- - -\n\n[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)\n[![Build Status](https://travis-ci.org/kaosat-dev/cycle-tingodb-driver.svg)](https://travis-ci.org/kaosat-dev/cycle-tingodb-driver)\n[![Dependency Status](https://david-dm.org/kaosat-dev/cycle-tingodb-driver.svg)](https://david-dm.org/kaosat-dev/cycle-tingodb-driver)\n[![devDependency Status](https://david-dm.org/kaosat-dev/cycle-tingodb-driver/dev-status.svg)](https://david-dm.org/kaosat-dev/cycle-tingodb-driver#info=devDependencies)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaosat-dev%2Fcycle-tingodb-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaosat-dev%2Fcycle-tingodb-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaosat-dev%2Fcycle-tingodb-driver/lists"}