{"id":47881661,"url":"https://github.com/bytebase/omni","last_synced_at":"2026-04-04T01:49:33.105Z","repository":{"id":344095868,"uuid":"1180424356","full_name":"bytebase/omni","owner":"bytebase","description":"SQL language infrastructure for multiple database engines","archived":false,"fork":false,"pushed_at":"2026-04-03T10:48:41.000Z","size":7876,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-04T01:48:51.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/bytebase.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":"2026-03-13T02:59:55.000Z","updated_at":"2026-04-03T10:48:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bytebase/omni","commit_stats":null,"previous_names":["bytebase/omni"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bytebase/omni","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fomni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fomni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fomni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fomni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytebase","download_url":"https://codeload.github.com/bytebase/omni/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytebase%2Fomni/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31384846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T01:22:39.193Z","status":"ssl_error","status_checked_at":"2026-04-04T01:22:33.970Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-04-04T01:49:32.485Z","updated_at":"2026-04-04T01:49:33.093Z","avatar_url":"https://github.com/bytebase.png","language":"Go","readme":"# Omni\n\nSQL toolchain for multiple database engines. Each engine provides a parser, AST, and additional components such as catalog simulation and semantic analysis -- all in pure Go with zero dependencies.\n\n## Features\n\n- **Zero dependencies** -- pure Go, no CGo, no generated code at runtime\n- **Full AST** -- every parsed statement produces a complete abstract syntax tree\n- **Position tracking** -- every AST node carries byte-offset location info\n- **Beyond parsing** -- catalog simulation, DDL semantic analysis, and more per engine\n\n## Status\n\n| Engine | Parser | Catalog | Completion |\n|--------|--------|---------|------------|\n| PostgreSQL | :white_check_mark: | :white_check_mark: | Planned |\n| MySQL | :construction: | Planned | Planned |\n| SQL Server | :construction: | Planned | Planned |\n| Oracle | :construction: | Planned | Planned |\n\n## Quick Start\n\n```bash\ngo get github.com/bytebase/omni\n```\n\n### PostgreSQL\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/bytebase/omni/pg\"\n    \"github.com/bytebase/omni/pg/ast\"\n)\n\nfunc main() {\n    stmts, err := pg.Parse(\"SELECT 1; CREATE TABLE t (id int);\")\n    if err != nil {\n        panic(err)\n    }\n    for _, s := range stmts {\n        fmt.Printf(\"%-20T  %s\\n\", s.AST, s.Text)\n    }\n    // *ast.SelectStmt       SELECT 1;\n    // *ast.CreateStmt        CREATE TABLE t (id int);\n}\n```\n\n## Architecture\n\n```\nomni/\n├── pg/                     PostgreSQL\n│   ├── parse.go            Public API: Parse(sql) → []Statement\n│   ├── ast/                210+ AST node types\n│   ├── parser/             Recursive descent parser (~29K lines)\n│   ├── catalog/            In-memory catalog simulation \u0026 DDL analysis\n│   ├── parsertest/         746 test cases\n│   └── pgregress/          PostgreSQL regression test compatibility\n├── mysql/                  MySQL\n│   ├── ast/                AST node types\n│   ├── parser/             Recursive descent parser\n│   └── parsertest/         Test cases\n├── mssql/                  SQL Server (T-SQL)\n│   ├── ast/                AST node types\n│   ├── parser/             Recursive descent parser\n│   └── parsertest/         Test cases\n├── oracle/                 Oracle\n│   ├── ast/                AST node types\n│   └── parser/             Recursive descent parser\n└── scripts/                Shared build \u0026 audit tooling\n```\n\n## Development\n\n```bash\n# Run all tests\nmake test\n\n# Test a specific engine\nmake test-pg\nmake test-mysql\nmake test-mssql\nmake test-oracle\n\n# Build everything\nmake build\n```\n\n## License\n\nMIT -- see [LICENSE](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebase%2Fomni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytebase%2Fomni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytebase%2Fomni/lists"}