{"id":24083275,"url":"https://github.com/mitranim/sqlp","last_synced_at":"2026-06-10T04:31:10.206Z","repository":{"id":57546058,"uuid":"299524752","full_name":"mitranim/sqlp","owner":"mitranim","description":"[MOVED] Parser for rewriting foreign code embedded in SQL","archived":false,"fork":false,"pushed_at":"2023-03-27T09:31:55.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T15:57:04.323Z","etag":null,"topics":["go","parser","sql"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/mitranim/sqlp","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitranim.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}},"created_at":"2020-09-29T06:28:22.000Z","updated_at":"2023-08-01T09:09:01.000Z","dependencies_parsed_at":"2022-08-27T03:19:34.800Z","dependency_job_id":null,"html_url":"https://github.com/mitranim/sqlp","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/mitranim/sqlp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsqlp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsqlp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsqlp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsqlp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitranim","download_url":"https://codeload.github.com/mitranim/sqlp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitranim%2Fsqlp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34137570,"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-06-10T02:00:07.152Z","response_time":89,"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":["go","parser","sql"],"created_at":"2025-01-09T23:56:15.672Z","updated_at":"2026-06-10T04:31:10.188Z","avatar_url":"https://github.com/mitranim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Moved to https://github.com/mitranim/sqlb**. This repo is usable but frozen.\n\n## Overview\n\n**SQL** **P**arse: parser and formatter for rewriting foreign code embedded in SQL queries, such as parameter placeholders: `$1` or `:ident`, or code encased in delimiters: `()` `[]` `{}`. Anything the parser doesn't recognize is preserved as text.\n\nAPI docs: https://pkg.go.dev/github.com/mitranim/sqlp.\n\n## Changelog\n\n### v0.3.0\n\nRenamed method `.Append` in various types to `.AppendTo` for consistency with other libraries.\n\n### v0.2.0\n\nVarious optimizations.\n\n* Added `Type`, `Region`, `Token` for use by the tokenizer; see below.\n\n* Tokenization is now allocation-free and around x2 faster in benchmarks. Instead of generating `Node` instances, the tokenizer generates stack-allocated `Token` instances.\n\n### v0.1.4\n\nAdded `NodeWhitespace`. This is emitted for any non-zero amount of whitespace. `NodeText` now contains only non-whitespace. The performance impact seems negligible.\n\n### v0.1.3\n\nSupport incremental parsing via `Tokenizer`. Added a few utility functions related to tree traversal. Minor breaking renaming.\n\n### v0.1.2\n\nAdded missing `(*Error).Unwrap`.\n\n### v0.1.1\n\nReplaced `[]rune` with `string`. When parsing, we treat the input string as UTF-8, decoding on the fly.\n\n### v0.1.0\n\nFirst tagged release.\n\n## License\n\nhttps://unlicense.org\n\n## Misc\n\nI'm receptive to suggestions. If this library _almost_ satisfies you but needs changes, open an issue or chat me up. Contacts: https://mitranim.com/#contacts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitranim%2Fsqlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitranim%2Fsqlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitranim%2Fsqlp/lists"}