Documentation ¶
Index ¶
- Variables
- func String(s *string) string
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) Exec(sql string) error
- func (c *Conn) InspectDatabase(o *InspectOptions) (db *ddl.Database, err error)
- func (c *Conn) ListChecks(schema, table string) ([]*ddl.Check, error)
- func (c *Conn) ListColumns(schema, table string) ([]*ddl.Column, error)
- func (c *Conn) ListForeignKeys(schema, table string) ([]*ddl.ForeignKey, error)
- func (c *Conn) ListFunctions() ([]*ddl.Function, error)
- func (c *Conn) ListIndexes(schema, table string) ([]*ddl.Index, error)
- func (c *Conn) ListParameters() (*ddl.Parameters, error)
- func (c *Conn) ListSchemas() ([]*ddl.Schema, error)
- func (c *Conn) ListTables() ([]*ddl.Table, error)
- func (c *Conn) ListTriggers(schema, table string) ([]*ddl.Trigger, error)
- func (c *Conn) ServerVersion() (string, error)
- type InspectOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHostForTLS = errors.New("host server name must be provided when TLS is required")
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is a connection to a PostgreSQL database
func (*Conn) InspectDatabase ¶
func (c *Conn) InspectDatabase(o *InspectOptions) (db *ddl.Database, err error)
InspectDatabase describes the database
func (*Conn) ListChecks ¶
ListChecks describes the check constraints of a database table
func (*Conn) ListColumns ¶
ListColumns describes the columns of a database table
func (*Conn) ListForeignKeys ¶
func (c *Conn) ListForeignKeys(schema, table string) ([]*ddl.ForeignKey, error)
ListForeignKeys describes a database table's dependencies on other tables
func (*Conn) ListFunctions ¶
ListFunctions describes the custom functions in the database
func (*Conn) ListIndexes ¶
ListIndexes describes the indexes of a database table
func (*Conn) ListParameters ¶
func (c *Conn) ListParameters() (*ddl.Parameters, error)
ListParameters describes database configuration parameters
func (*Conn) ListSchemas ¶
ListSchemas describes the schemas in the database
func (*Conn) ListTables ¶
ListTables describes the tables in the database
func (*Conn) ListTriggers ¶
ListTriggers describes the triggers of a database table
func (*Conn) ServerVersion ¶
ServerVersion queries the database host for its server version
type InspectOptions ¶
Click to show internal directories.
Click to hide internal directories.