Skip to main content

introspect_postgres

Function introspect_postgres 

Source
pub async fn introspect_postgres(
    connection_string: &str,
    tls: PgTlsMode,
) -> EFResult<Vec<DbTable>>
Expand description

Reads all tables and their columns from a PostgreSQL database.

The tls parameter controls transport encryption. For local dev (plaintext), pass PgTlsMode::Disable; for production, use PgTlsMode::Require with a configured TlsConnector.