codemap-sql
A SQL indexer for CodeMap, shipped as an independent PyPI package.
Indexes DDL (schema) statements so AI agents can answer "which table has
column X" and similar structural questions without scanning every
migration file. Query (SELECT/INSERT/...) statements are ignored —
they are not durable schema artefacts.
What it captures
Backed by tree-sitter-sql:
| AST node | Symbol kind |
|---|---|
create_table |
class (with extra.sql_kind=table) |
create_view |
class (with extra.sql_kind=view) |
create_index |
variable (with extra.sql_kind=index) |
column_definition inside create_table |
field (attached to the table) |
Asset-style scheme: this plugin uses scip-sql so a downstream
http_route / orm_mapping bridge can cross-reference these
symbols against application code that talks to them.
SymbolID encoding
scip-sql . . . db/migrations/0001_init.sql/users#
scip-sql . . . db/migrations/0001_init.sql/users#email.
scip-sql . . . db/migrations/0001_init.sql/idx_users_email.
Install
pip install codemap-sql
Limits
- Only DDL is indexed;
SELECT/INSERT/UPDATE/DELETEare walked past silently. CREATE PROCEDURE/CREATE FUNCTION/CREATE TRIGGERare not yet captured — the grammar reports them under generic statement nodes.- Dialect-specific features (e.g. PostgreSQL extensions) may not be parsed.
ALTER TABLEstatements that add columns are not tracked.
License
MIT.
Metadata
Release files for codemap-sql 0.4.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codemap_sql-0.4.10.tar.gz | 5.3 kB | With provenance | Details for codemap_sql-0.4.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codemap_sql-0.4.10-py3-none-any.whl | Python 3 | none | any | Details for codemap_sql-0.4.10-py3-none-any.whl |
Total release size: 10.2 kB
Release files / codemap_sql-0.4.10.tar.gz
| Download URL | codemap_sql-0.4.10.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19d685517ac7b22aac21274944f0ac24e55e02af3f2fd4e4403b3f8de4a53a49
|
|
BLAKE2b-256 checksum How to use checksums |
5ea827fd1ea1300420fb98ab7ce93204cf93eba165947f5ffb1eecd1e1574dde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency logRelease files / codemap_sql-0.4.10-py3-none-any.whl
| Download URL | codemap_sql-0.4.10-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
605501ac7c620d2dc398a09e0e02bf55c2e72d38c107e7c961cfe0cc64c88924
|
|
BLAKE2b-256 checksum How to use checksums |
4005a0e395194ebd053a614daa700df67a14483bdb151777d05430449b29097a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency logSecurity for codemap-sql 0.4.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for codemap_sql-0.4.10.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.