{"id":20564508,"url":"https://github.com/tarantool/sqlparser","last_synced_at":"2025-10-11T14:34:41.983Z","repository":{"id":42994733,"uuid":"265528461","full_name":"tarantool/sqlparser","owner":"tarantool","description":"An SQL parser for Tarantool based on Hyrise","archived":false,"fork":false,"pushed_at":"2022-11-11T09:33:46.000Z","size":55,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-10-11T14:34:39.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/tarantool.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":"2020-05-20T10:20:24.000Z","updated_at":"2025-04-06T09:50:34.000Z","dependencies_parsed_at":"2023-01-22T17:15:51.821Z","dependency_job_id":null,"html_url":"https://github.com/tarantool/sqlparser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tarantool/sqlparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fsqlparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fsqlparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fsqlparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fsqlparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarantool","download_url":"https://codeload.github.com/tarantool/sqlparser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool%2Fsqlparser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007449,"owners_count":26084313,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":"2024-11-16T04:27:25.513Z","updated_at":"2025-10-11T14:34:41.966Z","avatar_url":"https://github.com/tarantool.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tarantool SQL Parser\n\nAn SQL parser for LuaJIT. It takes an SQL string as an input and returns an AST.\nThe project is based on [Hyrise SQL parser](https://github.com/hyrise/sql-parser). It uses FFI to communicate with it.\n\n## Requirements:\n\n- gcc 5+ or clang 5+\n\n## Installation:\n\n```shell\ntarantoolctl rocks install sqlparser\n```\n\n## Usage:\n\n```Lua\nlocal parser = require(\"sqlparser\")\n\nlocal ast = parser.parse(\"select a from test;\")\n```\n\n`ast` variable now contains:\n\n```json\n{\n    \"parameters\": [],\n    \"errorLine\": 0,\n    \"statements\": [\n        {\n            \"fromTable\": {\n                \"type\": \"table\",\n                \"name\": \"test\"\n            },\n            \"selectList\": [\n                {\n                    \"type\": \"columnRef\",\n                    \"name\": \"a\"\n                }\n            ],\n            \"selectDistinct\": false,\n            \"type\": \"select\"\n        }\n    ],\n    \"isValid\": true\n}\n```\n\nAnd backwards:\n\n```Lua\nlocal queries = parser.tostring(ast)\n```\n\n`queries[1]` is:\n\n```\nselect \"a\" from \"test\";\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarantool%2Fsqlparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarantool%2Fsqlparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarantool%2Fsqlparser/lists"}