haskell-relational-record/relational-join-HDBC-pgTest/pgTest/runCreate.sh
Kei Hibino 7e98380848 Move sample codes into another package.
--HG--
rename : schema-th/pgTest/PgTest.hs => relational-join-HDBC-pgTest/pgTest/PgTest.hs
rename : schema-th/pgTest/PgTestDataSource.hs => relational-join-HDBC-pgTest/pgTest/PgTestDataSource.hs
rename : schema-th/pgTest/runCreate.sh => relational-join-HDBC-pgTest/pgTest/runCreate.sh
rename : schema-th/pgTest/runDrop.sh => relational-join-HDBC-pgTest/pgTest/runDrop.sh
rename : schema-th/sample/1/Group.hs => relational-join-HDBC-pgTest/sample/1/Group.hs
rename : schema-th/sample/1/Membership.hs => relational-join-HDBC-pgTest/sample/1/Membership.hs
rename : schema-th/sample/1/README => relational-join-HDBC-pgTest/sample/1/README
rename : schema-th/sample/1/User.hs => relational-join-HDBC-pgTest/sample/1/User.hs
rename : schema-th/sample/1/create.sh => relational-join-HDBC-pgTest/sample/1/create.sh
rename : schema-th/sample/1/drop.sh => relational-join-HDBC-pgTest/sample/1/drop.sh
rename : schema-th/sample/1/querySample.hs => relational-join-HDBC-pgTest/sample/1/querySample.hs
2013-05-13 19:24:31 +09:00

34 lines
541 B
Bash
Executable File

#! /bin/sh
PATH='/usr/bin:/bin'
create0='
CREATE TABLE TEST.test_table0 (
foo smallint NOT NULL,
foo_bar integer NOT NULL,
par_ent integer NOT NULL,
bar date,
bar_baz text,
baz VARCHAR(10),
PRIMARY KEY(foo_bar)
)
'
create1='
CREATE TABLE TEST.test_table1 (
foo integer NOT NULL,
PRIMARY KEY (foo)
)
'
set -x
psql -c "CREATE SCHEMA TEST" testdb
psql -c "$create0" testdb
psql -c "$create1" testdb
psql -c "INSERT INTO TEST.test_table1 (foo) VALUES (1)" testdb
psql -c "INSERT INTO TEST.test_table1 (foo) VALUES (2)" testdb