Skip to main content

Crate sqlshield_introspect

Crate sqlshield_introspect 

Source
Expand description

Live database introspection for sqlshield.

Connects to a running database and builds a TablesAndColumns map directly from system catalogs — no SQL dump required. Driver is selected by URL scheme:

  • postgres://… / postgresql://… — Postgres via the postgres crate.
  • sqlite:///path/to/file.db (or a bare path) — SQLite via rusqlite.

MySQL support is planned but currently blocked on the mysql_common crate’s use of unstable Rust features that haven’t reached the project’s pinned toolchain yet.

Each driver is optional behind a Cargo feature; the default build pulls both currently-supported drivers.

Enums§

IntrospectError

Functions§

introspect
Connect to db_url and return the live schema. Caller is expected to pass a URL the running process can actually reach; the function returns any driver error directly so callers can show a useful message.