Quelklef / local-postgres

A tool for local and anonymous PostgreSQL instances
1 stars 1 forks source link

potential changes #3

Closed Quelklef closed 1 year ago

Quelklef commented 2 years ago

potential additions

function lpg.connstr { lpg do $1 bash -c 'echo $LPG_CONNSTR'; }
function lpg.ensure-running { lpg do $1 bash -c 'pg_ctl status || pg_ctl start' || return 1; }
Quelklef commented 2 years ago

Also maybe instead of lpg <cmd> <dir> <args>... it would be nicer to do lpg <dir> <cmd> <args>..., with the possible exception of for lpg make?

Quelklef commented 1 year ago

lpg bash and lpg up are good enough; considering this done as of 6a864a75e4997a67d16e6344ea29a9c52422a332