{"id":24738606,"url":"https://github.com/zweifisch/rqlite-client","last_synced_at":"2026-04-09T12:02:30.010Z","repository":{"id":66141044,"uuid":"146061117","full_name":"zweifisch/rqlite-client","owner":"zweifisch","description":"nodejs client for rqlite with cluster support","archived":false,"fork":false,"pushed_at":"2018-10-26T14:05:26.000Z","size":161,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T02:57:59.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/zweifisch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-08-25T03:22:17.000Z","updated_at":"2023-09-11T01:17:40.000Z","dependencies_parsed_at":"2023-03-18T14:22:54.949Z","dependency_job_id":null,"html_url":"https://github.com/zweifisch/rqlite-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zweifisch/rqlite-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Frqlite-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Frqlite-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Frqlite-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Frqlite-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zweifisch","download_url":"https://codeload.github.com/zweifisch/rqlite-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zweifisch%2Frqlite-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259289131,"owners_count":22834910,"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-01-27T22:55:01.086Z","updated_at":"2025-12-30T20:07:27.616Z","avatar_url":"https://github.com/zweifisch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rqlite-client\n\n[![NPM Version][npm-image]][npm-url]\n[![Build Status][travis-image]][travis-url]\n[![Node.js Version][node-version-image]][node-version-url]\n\nnodejs client for [rqlite](https://github.com/rqlite/rqlite), with cluster support, [documentation](https://zweifisch.github.io/rqlite-client/)\n\n```js\nconst { Client } = require('rqlite-client')\n\nconst client = new Client(['http://localhost:4001', 'http://localhost:4003'])\n\nconst schema = `\\\nCREATE TABLE IF NOT EXISTS account (\n  id integer not null primary key,\n  name text,\n  balance integer not null default 0\n)`\n\nasync function main() {\n\n    await client.exec(schema)\n\n    await client.exec('INSERT INTO account(name, balance) VALUES(\"foo\", 10)')\n    await client.exec('INSERT INTO account(name, balance) VALUES(\"bar\", 10)')\n\n    await client.batch([\n        'UPDATE ACCOUNT SET balance = balance - 1 WHERE name = \"foo\"',\n        'UPDATE ACCOUNT SET balance = balance + 1 WHERE name = \"bar\"',\n    ], true) // true for atomic\n\n    await client.query('SELECT * FROM account')\n}\n```\n\n[npm-image]: https://img.shields.io/npm/v/rqlite-client.svg?style=flat\n[npm-url]: https://npmjs.org/package/rqlite-client\n[travis-image]: https://img.shields.io/travis/zweifisch/rqlite-client.svg?style=flat\n[travis-url]: https://travis-ci.org/zweifisch/rqlite-client\n[node-version-image]: https://img.shields.io/node/v/rqlite-client.svg\n[node-version-url]: https://nodejs.org/en/download/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Frqlite-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzweifisch%2Frqlite-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzweifisch%2Frqlite-client/lists"}