{"id":24231543,"url":"https://github.com/robinblomberg/sqlite-ast","last_synced_at":"2026-05-09T13:41:27.230Z","repository":{"id":122865897,"uuid":"322793044","full_name":"RobinBlomberg/sqlite-ast","owner":"RobinBlomberg","description":"Abstract Syntax Tree (AST) classes for representing SQLite statements.","archived":false,"fork":false,"pushed_at":"2024-01-02T09:40:52.000Z","size":126,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T14:20:05.882Z","etag":null,"topics":["ast","sqlite"],"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/RobinBlomberg.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-12-19T07:34:57.000Z","updated_at":"2023-12-14T07:35:55.000Z","dependencies_parsed_at":"2023-12-14T10:43:26.964Z","dependency_job_id":null,"html_url":"https://github.com/RobinBlomberg/sqlite-ast","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/RobinBlomberg%2Fsqlite-ast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBlomberg%2Fsqlite-ast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBlomberg%2Fsqlite-ast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobinBlomberg%2Fsqlite-ast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobinBlomberg","download_url":"https://codeload.github.com/RobinBlomberg/sqlite-ast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241828201,"owners_count":20026864,"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":["ast","sqlite"],"created_at":"2025-01-14T14:20:10.182Z","updated_at":"2026-05-09T13:41:22.197Z","avatar_url":"https://github.com/RobinBlomberg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SQLite AST\n\nA library for creating abstract syntax trees for SQLite. Useful in conjunction with\n[@robinblomberg/sqlite-compiler](https://github.com/RobinBlomberg/sqlite-compiler) to\nprogrammatically create and manipulate SQLite. It is well-tested and covers the entire SQLite\nspecification (at the time of creation).\n\n## Installation\n\n```sh\nnpm install @robinblomberg/sqlite-ast\n```\n\n## Usage\n\n```js\nimport { Nodes } from '@robinblomberg/sqlite-ast';\n\n// 'SELECT result-column FROM ((SELECT 1), table-name AS table-alias)'\nconst ast = Nodes.SelectStmt(\n  null,\n  [\n    Nodes._SelectClause(\n      null,\n      [Nodes.ResultColumn(Nodes._Identifier('result-column'))],\n      [\n        Nodes._TableQueryClause([\n          Nodes._TableSelectClause(\n            Nodes.SelectStmt(\n              null,\n              [\n                Nodes._SelectClause(\n                  null,\n                  [Nodes.ResultColumn(Nodes._NumericLiteral(1))],\n                  [],\n                  null,\n                  null,\n                  [],\n                ),\n              ],\n              null,\n            ),\n            null,\n          ),\n          Nodes.QualifiedTableName(\n            Nodes._Identifier('table-name'),\n            Nodes._Identifier('table-alias'),\n            null,\n          ),\n        ]),\n      ],\n      null,\n      null,\n      [],\n    ),\n  ],\n  null,\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinblomberg%2Fsqlite-ast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinblomberg%2Fsqlite-ast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinblomberg%2Fsqlite-ast/lists"}