websites.concatenative: Add a way to test postgresql.

db4
Doug Coleman 2016-03-12 20:17:40 -08:00
parent c42926ae97
commit 0c12c8f118
1 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ namespaces smtp urls
db2.connections
orm.tuples
sqlite.db2
postgresql.db2
logging.insomniac calendar timers
html.templates.chloe
http.server
@ -35,6 +36,12 @@ websites.factorcode ;
IN: websites.concatenative
: website-db ( -- db ) home "website.db" append-path <sqlite-db> ;
: website-db2 ( -- db )
<postgresql-db>
"localhost" >>host
"erg" >>username
"thepasswordistrust" >>password
"factor-test" >>database ;
: init-factor-db ( -- )
mason-db [ init-mason-db ] with-db