SQL indexer plugin for CodeMap
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codemap_sql-0.3.4.tar.gz.
File metadata
- Download URL: codemap_sql-0.3.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5ab600151df224a769eadcb106469a1c4e97ed2a4846e164cd77a2ceaa10b60
|
|
| MD5 |
3eb6829728068a1c5f9d6cc98a3c1f0f
|
|
| BLAKE2b-256 |
bc527056339c6f8c81e7de642f88d180a3f5afcaa87019d4a8115349e6b28aec
|
Provenance
The following attestation bundles were made for codemap_sql-0.3.4.tar.gz:
Publisher:
publish.yml on qxbyte/codemap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codemap_sql-0.3.4.tar.gz -
Subject digest:
d5ab600151df224a769eadcb106469a1c4e97ed2a4846e164cd77a2ceaa10b60 - Sigstore transparency entry: 1960426846
- Sigstore integration time:
-
Permalink:
qxbyte/codemap@52494c30a30daf37dda9cdd32880b07238a20366 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/qxbyte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@52494c30a30daf37dda9cdd32880b07238a20366 -
Trigger Event:
push
-
Statement type:
File details
Details for the file codemap_sql-0.3.4-py3-none-any.whl.
File metadata
- Download URL: codemap_sql-0.3.4-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b3f28aae0764210cc732ab56ebc6eefdedb3f9a87e67e6f7c32de1a5b522cf2
|
|
| MD5 |
2dbda7f503180bc4cff3e8d5301a0b0c
|
|
| BLAKE2b-256 |
873f36ff0d9893e2032a4d3050d6942c31b466b964a02608eb2da22587466183
|
Provenance
The following attestation bundles were made for codemap_sql-0.3.4-py3-none-any.whl:
Publisher:
publish.yml on qxbyte/codemap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codemap_sql-0.3.4-py3-none-any.whl -
Subject digest:
9b3f28aae0764210cc732ab56ebc6eefdedb3f9a87e67e6f7c32de1a5b522cf2 - Sigstore transparency entry: 1960426953
- Sigstore integration time:
-
Permalink:
qxbyte/codemap@52494c30a30daf37dda9cdd32880b07238a20366 -
Branch / Tag:
refs/tags/v0.3.4 - Owner: https://github.com/qxbyte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@52494c30a30daf37dda9cdd32880b07238a20366 -
Trigger Event:
push
-
Statement type: