Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// RecreateTables indicates that you accept all consequences from dropping your table and recreating it
RecreateTables = "recreate tables"
)
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // AcceptRecreateWarning is used as a safety check to pevent accidental deletion of existing tables and data // To accept the warning, you must set the value of this field to `recreate tables`, which can be done manually // or via the usage of the public `RecreateTables` variable AcceptRecreateWarning string Host string Port string User string Password string Database string Table string SSLMode string RunMigrations bool RecreateTables bool CreateIndex bool }
Options are the postgres datastore options, reexported here for convenience.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
Queries are the postgres queries for a given table.
func NewQueries ¶
NewQueries creates a new PostgreSQL set of queries for the passed table
func (Queries) Offset ¶
Offset returns the postgres query fragment for returning rows from a given offset.
func (Queries) Prefix ¶
Prefix returns the postgres query fragment for getting a rows with a key prefix.
Click to show internal directories.
Click to hide internal directories.