Files
herolib/lib/installers/db/postgresql
2024-12-25 21:48:03 +01:00
..
2024-12-25 10:11:52 +01:00
2024-12-25 10:11:52 +01:00
2024-12-25 10:11:52 +01:00
2024-12-25 10:11:52 +01:00
2024-12-25 10:11:52 +01:00
2024-12-25 10:11:52 +01:00
2024-12-25 21:48:03 +01:00
2024-12-25 10:11:52 +01:00
2024-12-25 10:11:52 +01:00

postgresql

To get started



import freeflowuniverse.herolib.installers.db.postgresql

mut installer:= postgresql.get()!

installer.start()!




example heroscript

!!postgresql.install
    path: ''
    passwd: 'asecret'

use psql

uses our hero configure output and jq command line trick

#default is the instance name
export PGPASSWORD=`hero configure -c postgres -i default -s | jq -r '.passwd'`
psql -U "root" -h localhost

to use in other installer


//e.g. in server configure function

import freeflowuniverse.herolib.installers.db.postgresql

mut mydbinstaller:=postgresql.get()!
mydbinstaller.start()!

// now create the DB
mydbinstaller.db_create('gitea')!