{"id":17283303,"url":"https://github.com/sjjian/oracle-sql-parser","last_synced_at":"2026-02-14T05:08:18.853Z","repository":{"id":37672675,"uuid":"406593157","full_name":"sjjian/oracle-sql-parser","owner":"sjjian","description":"this is a yacc (goyacc) oracle sql parser. ","archived":false,"fork":false,"pushed_at":"2022-04-18T07:09:49.000Z","size":786,"stargazers_count":20,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-12T05:25:03.606Z","etag":null,"topics":["ast","goyacc","lexer","oracle","parse","parser","plsql","sql","statement","stmt","yacc"],"latest_commit_sha":null,"homepage":"","language":"Yacc","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjjian.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":"2021-09-15T02:55:36.000Z","updated_at":"2025-06-23T06:59:28.000Z","dependencies_parsed_at":"2022-08-18T04:10:51.820Z","dependency_job_id":null,"html_url":"https://github.com/sjjian/oracle-sql-parser","commit_stats":null,"previous_names":["sjjian/oracle_sql_parser"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sjjian/oracle-sql-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Foracle-sql-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Foracle-sql-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Foracle-sql-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Foracle-sql-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjjian","download_url":"https://codeload.github.com/sjjian/oracle-sql-parser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjjian%2Foracle-sql-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29437371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T03:34:37.767Z","status":"ssl_error","status_checked_at":"2026-02-14T03:34:09.092Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["ast","goyacc","lexer","oracle","parse","parser","plsql","sql","statement","stmt","yacc"],"created_at":"2024-10-15T09:50:59.081Z","updated_at":"2026-02-14T05:08:18.833Z","avatar_url":"https://github.com/sjjian.png","language":"Yacc","readme":"# Oracle SQL Parser\nthis is an oracle sql parser. ref: https://docs.oracle.com/en/database/oracle/oracle-database/21/sqlrf\n\n## supported statement\n|statement| sub statement |yacc|ast|\n|----|----|----|----|\n|Alter table|Add column| :heavy_check_mark:|:heavy_check_mark:|\n|Alter table|Modify column| :heavy_check_mark:|:heavy_check_mark:|\n|Alter table|Drop column| :heavy_check_mark:|:heavy_check_mark:|\n|Alter table|Rename column| :heavy_check_mark:|:heavy_check_mark:|\n|Alter table|Add constraint| :heavy_check_mark:| :heavy_check_mark:|\n|Alter table|Modify constraint| :heavy_check_mark:| :heavy_check_mark:|\n|Alter table|Rename constraint| :heavy_check_mark:| :heavy_check_mark:|\n|Alter table|Drop constraint| :heavy_check_mark:| :heavy_check_mark:|\n|Create table|Relational table|:heavy_check_mark:|:heavy_check_mark:|\n|Create index|Relational table|:heavy_check_mark:| |\n|Drop table|-|:heavy_check_mark:|:heavy_check_mark:|\n|Drop index|-|:heavy_check_mark:|:heavy_check_mark:|\n\n## usage\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/sjjian/oracle-sql-parser\"\n\t\"github.com/sjjian/oracle-sql-parser/ast\"\n)\n\nfunc main() {\n\tstmts, err := parser.Parser(\"alter table db1.t1 add (id number, name varchar2(255))\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\tstmt := stmts[0]\n\tswitch s := stmt.(type) {\n\tcase *ast.AlterTableStmt:\n\t\tfmt.Println(s.TableName.Table.Value) // t1\n\t}\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjjian%2Foracle-sql-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjjian%2Foracle-sql-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjjian%2Foracle-sql-parser/lists"}