Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataRequest ¶
type DataResponse ¶
type DataResponse struct { Items *[]interface{} `json:"items"` Count int64 `json:"count"` Aggregate interface{} `json:"aggregate"` }
type Database ¶
type Database interface {
Execute(handler func(tx Transaction))
}
func NewDatabase ¶
func NewDatabase(config *DatabaseConfig) Database
type DatabaseConfig ¶
type DatabaseConfig struct { Host string // host (e.g. localhost) or path to unix domain socket directory (e.g. /private/tmp) Port uint16 // default: 5432 Database string User string // default: OS user name Password string // Run-time parameters to set on connection as session default values // (e.g. search_path or application_name) RuntimeParams map[string]string }
Click to show internal directories.
Click to hide internal directories.