Skip to main content

Module ddl

Module ddl 

Source
Expand description

Bootstrap DDL statement builders for PostgreSQL provisioning.

CREATE USER / CREATE DATABASE / GRANT run before the target database exists, so they cannot bind parameters; identifiers and literals are escaped here instead. Statement execution stays in the setup wizard.

Functionsยง

build_create_db_sql
build_create_user_sql
build_grant_sql
quote_ident
Escapes and double-quotes a PostgreSQL identifier (role or database name).
quote_literal
Escapes and single-quotes a PostgreSQL string literal.