Added script for database setup
This commit is contained in:
@@ -6,4 +6,4 @@ Experimental PostgreSQL client library for Go
|
||||
Testing
|
||||
-------
|
||||
|
||||
To setup the test environment create a database named pgx_test.
|
||||
To setup the test environment run the test_setup.sql script as a user that can create users and databases.
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
drop database if exists pgx_test;
|
||||
drop user if exists pgx;
|
||||
|
||||
create user pgx password 'secret';
|
||||
create database pgx_test owner = pgx;
|
||||
Reference in New Issue
Block a user