{"id":34557213,"url":"https://github.com/danieloneill/quickjs-dbi","last_synced_at":"2026-05-29T04:31:36.527Z","repository":{"id":320127076,"uuid":"1080905715","full_name":"danieloneill/quickjs-dbi","owner":"danieloneill","description":"Basic libdbi implementation for QuickJS","archived":false,"fork":false,"pushed_at":"2025-10-22T03:13:24.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-22T05:29:48.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/danieloneill.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-22T03:12:08.000Z","updated_at":"2025-10-22T03:13:27.000Z","dependencies_parsed_at":"2025-10-22T05:40:08.017Z","dependency_job_id":null,"html_url":"https://github.com/danieloneill/quickjs-dbi","commit_stats":null,"previous_names":["danieloneill/quickjs-dbi"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/danieloneill/quickjs-dbi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fquickjs-dbi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fquickjs-dbi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fquickjs-dbi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fquickjs-dbi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieloneill","download_url":"https://codeload.github.com/danieloneill/quickjs-dbi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fquickjs-dbi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33637485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-24T08:30:46.735Z","updated_at":"2026-05-29T04:31:36.510Z","avatar_url":"https://github.com/danieloneill.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quickjs-dbi\nBasic libdbi implementation for [QuickJS](https://bellard.org/quickjs/).\n\n**This code currently builds against QuickJS-2025-09-13**\n\n## Building\nEdit Makefile and point QJSPATH to your quickjs root then just build with *make*.\n\nNow you should be able to run the examples:\n * example.js\n\n## Documentation\n\nDBI:\n * open(type, opts) -\u003e DBIHandle\n   * type - string - a valid dbd driver name\n   * opts - jsobject - dictionary containing connection parameters as keys and values\n\nDBIHandle:\n * exec(querystr, params) -\u003e boolean\n   * querystr - string - the query string\n   * params - jsobject/array - parameters to fill placeholders within a query:\n    - if `params` is an array, query placeholders \"?\" will be replaced, in turn, with the values\n    - if `params` is a dictionary object, query placeholders \":\u0026lt;key\u0026gt;\" will be replaced with matching key values in the object\n * query(querystr, params) -\u003e DBIResult\n   * same parameters as `exec`, but returns a `DBIResult`\n * close()\n\nDBIResult:\n * next() -\u003e boolean\n   * first call will attempt to place the cursor at the first result row. subsequent calls will advance to the next row.\n   * if there are no (more) rows, returns FALSE, otherwise TRUE.\n * get(field) -\u003e variant\n   * `field` may be either the name of the field, or a numeric index within the results.\n   * return value depends on the field type in the query result\n * numfields() -\u003e number\n * numrows() -\u003e number\n * toArray(asdict) -\u003e Array\n   * if `asdict` is true, result rows will contain jsobject dictionaries associating each column name to each value.\n   * if `asdict` is false, result rows will contain Arrays of the values.\n\nSee the example.\n\nI'm aware that things like setting the current row, prepared statements, and other basic methods aren't implemented. Please don't hesitate to offer a PR if you get around to implementing such things before me.\n\nThis module hasn't been tested very thoroughly, bug reports are welcome.\n\nAlso check out my [quickjs-net](https://github.com/danieloneill/quickjs-net), [quickjs-hash](https://github.com/danieloneill/quickjs-hash) and [quickjs-wolfssl](https://github.com/danieloneill/quickjs-wolfssl) modules.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieloneill%2Fquickjs-dbi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieloneill%2Fquickjs-dbi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieloneill%2Fquickjs-dbi/lists"}