Skip to main content

Module postgres

Module postgres 

Source
Expand description

PostgreSQL provisioning steps for the setup wizard.

Resolves connection parameters from SetupArgs, reaches an existing server or starts one via Docker, and—when given superuser credentials—creates the role, database, and grants. The bootstrap CREATE USER/CREATE DATABASE/ GRANT statements use dynamic SQL because they run before the target database exists and cannot bind parameters.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Functions§

setup_interactive
setup_non_interactive