Documentation ¶
Overview ¶
The rdb package provides a basic bootstrap connection to a relational (SQL) database for Liquid Dev projects.
rdb supports logging queries to stderr. This can activated via `LogQueries` called from a test file or by setting the 'DEBUG_SQL' environment variable. A value of 'before' will log the query prior to processing DEFAULTs. 'all' will show both prior and post-DEFAULT processing, and any other non-blank value will show post-processing values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
Connect initializes the DB connection. The following environment variables must be defined: * CLOUDSQL_CONNECTION_NAME * CLOUDSQL_DB * CLOUDSQL_PASSWORD * CLOUDSQL_USER
func EchoQueries ¶
func EchoQueries(opt string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.