Help us shape the future of Go! Take the 2026 Go Developer Survey

psql

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

The psql package queries postgres meta tables to create a database db.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadColumnNodes

func LoadColumnNodes(conn Conn, schema db.Schema, table db.Table) ([]db.ColumnNode, error)

func LoadColumns

func LoadColumns(conn Conn, schemaName, tableName string) ([]db.Column, error)

func LoadDatabaseNode

func LoadDatabaseNode(conn Conn) (db.DatabaseNode, error)

func LoadExtensionNodes

func LoadExtensionNodes(conn Conn) ([]db.ExtensionNode, error)

func LoadExtensions

func LoadExtensions(conn Conn) ([]db.Extension, error)

func LoadIndexExprs

func LoadIndexExprs(conn Conn, schemaName, indexName string) ([]string, error)

func LoadIndexNodes

func LoadIndexNodes(conn Conn, schema db.Schema, table db.Table) ([]db.IndexNode, error)

func LoadIndexes

func LoadIndexes(conn Conn, schemaName, tableName string) ([]db.Index, error)

func LoadSchemaNodes

func LoadSchemaNodes(conn Conn) ([]db.SchemaNode, error)

func LoadSchemas

func LoadSchemas(conn Conn) ([]db.Schema, error)

func LoadTableNodes

func LoadTableNodes(conn Conn, schema db.Schema) ([]db.TableNode, error)

func LoadTables

func LoadTables(conn Conn, schemaName string) ([]db.Table, error)

Types

type Conn

type Conn interface {
	Query(string, ...interface{}) (*pgx.Rows, error)
}

type ElementType added in v0.0.6

type ElementType struct {
	ElementTypeId    string
	DataType         string
	NumericPrecision int
	NumericScale     int
}

func LoadElementTypes added in v0.0.6

func LoadElementTypes(conn Conn, schemaName, tableName string) ([]ElementType, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL