Skip to main content

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 / DELETE are walked past silently.
  • CREATE PROCEDURE / CREATE FUNCTION / CREATE TRIGGER are not yet captured — the grammar reports them under generic statement nodes.
  • Dialect-specific features (e.g. PostgreSQL extensions) may not be parsed.
  • ALTER TABLE statements that add columns are not tracked.

License

MIT.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codemap_sql-0.4.10.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codemap_sql-0.4.10-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file codemap_sql-0.4.10.tar.gz.

File metadata

  • Download URL: codemap_sql-0.4.10.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for codemap_sql-0.4.10.tar.gz
Algorithm Hash digest
SHA256 19d685517ac7b22aac21274944f0ac24e55e02af3f2fd4e4403b3f8de4a53a49
MD5 3610de09a367b4c0f205cacb20826f33
BLAKE2b-256 5ea827fd1ea1300420fb98ab7ce93204cf93eba165947f5ffb1eecd1e1574dde

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_sql-0.4.10.tar.gz:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codemap_sql-0.4.10-py3-none-any.whl.

File metadata

  • Download URL: codemap_sql-0.4.10-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for codemap_sql-0.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 605501ac7c620d2dc398a09e0e02bf55c2e72d38c107e7c961cfe0cc64c88924
MD5 32407d0fc64e1986ded7b2f39a445213
BLAKE2b-256 4005a0e395194ebd053a614daa700df67a14483bdb151777d05430449b29097a

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_sql-0.4.10-py3-none-any.whl:

Publisher: publish.yml on qxbyte/codemap

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.4.10 This release

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page