Re: postgresql create db script

2008-01-18 Thread Anton P. Linevich
Greeting, Carl! Fri, Jan 18, 2008 at 02:26:33AM -0600, carl wrote: > I am trying to write a shell script that do whatever needs to be done between > sudo apt-get install postgresql python-psycopg > and > manage.py syncdb > > for MySql, I use this to generate somehting I can pipe into the CLI:

Re: postgresql create db script

2008-01-18 Thread Brett Parker
On 18 Jan 02:26, Carl Karsten wrote: > > I am trying to write a shell script that do whatever needs to be done between > sudo apt-get install postgresql python-psycopg > and > manage.py syncdb > > for MySql, I use this to generate somehting I can pipe into the CLI: > > print """ > DROP

postgresql create db script

2008-01-18 Thread Carl Karsten
I am trying to write a shell script that do whatever needs to be done between sudo apt-get install postgresql python-psycopg and manage.py syncdb for MySql, I use this to generate somehting I can pipe into the CLI: print """ DROP DATABASE IF EXISTS %(db)s; CREATE DATABASE %(db)s; GRANT ALL