postgres

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2017 License: MIT Imports: 8 Imported by: 0

README

postgres

postgresql support for ngorm

Code taken from gorm, modified for use with ngorm.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	common.Dialect
}

func (Postgres) BindVar

func (Postgres) BindVar(i int) string

func (Postgres) CurrentDatabase

func (s Postgres) CurrentDatabase() (name string)

func (Postgres) DataTypeOf

func (Postgres) DataTypeOf(field *model.StructField) (string, error)

func (Postgres) GetName

func (Postgres) GetName() string

func (Postgres) HasColumn

func (s Postgres) HasColumn(tableName string, columnName string) bool

func (Postgres) HasForeignKey

func (s Postgres) HasForeignKey(tableName string, foreignKeyName string) bool

func (Postgres) HasIndex

func (s Postgres) HasIndex(tableName string, indexName string) bool

func (Postgres) HasTable

func (s Postgres) HasTable(tableName string) bool

func (Postgres) LastInsertIDReturningSuffix

func (s Postgres) LastInsertIDReturningSuffix(tableName, key string) string

func (Postgres) SupportLastInsertID

func (Postgres) SupportLastInsertID() bool

Jump to

Keyboard shortcuts

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