# README
PostGres
The PostGres dialect uses the github.com/lib/pq driver, which passes the compatibility test suite.
Testing
A valid PostGres connection string should be set on the environmental variable SOL_TEST_POSTGRES
. An example:
SOL_TEST_POSTGRES="host=localhost port=5432 dbname=sol_test user=postgres password=secret sslmode=disable" go test
If the environmental variable is empty, the test will default to a Travis CI connection string, which will likely panic on your local system.
Docker
Docker hub provides an official PostGres image. A container can be started with:
docker run -p 5432:5432 --name postgres \
-e "POSTGRES_PASSWORD=" \
-e "POSTGRES_DB=sol_test" -d postgres:latest
Then change the host of the connection string to the default Docker machine and run tests, for example:
SOL_TEST_POSTGRES="host=<DOCKER HOST> port=5432 dbname=sol_test user=postgres sslmode=disable" go test
# Functions
No description provided by the author
TODO Date cannot have a time zone.
No description provided by the author
Dialect is a constructor for the PostGres Dialect.
No description provided by the author
Insert creates an INSERT ..
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Serial creates a new serial type.
Table creates a new table element.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO Don't hardcode utc?.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
ColumnElem is the postgres dialect's implementation of a SQL column.
InsertStmt is the internal representation of an INSERT ..
PostGres implements the Dialect interface for postgres databases.
TableElem is a postgres specific implementation of a table.