Skip to main content

MyBatis Mapper XML indexer plugin for CodeMap

Project description

codemap-mybatis

MyBatis Mapper XML indexer plugin for CodeMap.

What it does

Reads MyBatis *Mapper.xml files and produces:

  • sql_mapping symbols — one per <select|insert|update|delete> statement
  • table symbols — one per referenced database table
  • accesses_table edges — sql_mapping → table, with confidence graded by SQL complexity (static SQL → high; contains <if>/<foreach>medium; uses ${} substitution → low)
  • maps_to edges — java_method → sql_mapping, linking the Java Mapper interface methods (produced by codemap-java) to their backing XML statements via (namespace, stmt_id)

Scope

DDL (CREATE TABLE) lives in codemap-sql; this plugin handles the DML side (FROM/JOIN/INSERT/UPDATE/DELETE) directly because it needs to grade confidence by MyBatis dynamic-SQL constructs.

Dynamic SQL (<if>, <foreach>, <where>, <set>, <choose>, <trim>) is extracted statically — the runtime-only branches are accepted as medium-confidence edges. ${} raw substitution (e.g. variable table names) drops confidence to low.

Project details


Download files

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

Source Distribution

codemap_mybatis-0.4.5.tar.gz (8.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_mybatis-0.4.5-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file codemap_mybatis-0.4.5.tar.gz.

File metadata

  • Download URL: codemap_mybatis-0.4.5.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for codemap_mybatis-0.4.5.tar.gz
Algorithm Hash digest
SHA256 9bfa657181f9bb7c8f6392869d72a65d5090f98099b382b2040d99587783c5e0
MD5 b54bc3dd52a43573c6014f9a15eba27e
BLAKE2b-256 4f5f7cbe71ce4da143b69fa020c3a4ba4b46fde3c9458852e9593acb66617ea2

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_mybatis-0.4.5.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_mybatis-0.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for codemap_mybatis-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cfedb98767ad5a1dbcb6c2df085f00f4daf6deb87b4d90333b486fb4b61e2312
MD5 6c3eee447d836f1f0de2e48568235268
BLAKE2b-256 13eb007a5946a2cdad31badde9e7aaae1ceb75c5b726fceca42bd8d9c6b9a46c

See more details on using hashes here.

Provenance

The following attestation bundles were made for codemap_mybatis-0.4.5-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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page