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

postgres

package
v3.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFactory added in v3.0.3

func InitFactory()

Types

type Factory

type Factory struct {
}

func (Factory) ConditionToSql

func (m Factory) ConditionToSql(preTag bool, cnd define.Condition) (string, []interface{})

func (Factory) GetColumns

func (m Factory) GetColumns(tableName string, db *sql.DB) ([]define.Column, error)

func (Factory) GetCurrentSchema added in v3.0.4

func (m Factory) GetCurrentSchema(db *sql.DB) (string, error)

func (Factory) GetSqlFunc

func (m Factory) GetSqlFunc(sqlType define.SqlType) define.SqlFunc

func (Factory) GetTableStruct added in v3.0.12

func (m Factory) GetTableStruct(tableName string, db *sql.DB) (define.ITableStruct, error)

func (Factory) GetTables added in v3.0.4

func (m Factory) GetTables(db *sql.DB) ([]string, error)

func (Factory) OpenDb

func (m Factory) OpenDb(dsn string) (*sql.DB, error)

type MyCndStruct

type MyCndStruct struct {
	Linker     string
	Expression string
	Data       []interface{}
}

Jump to

Keyboard shortcuts

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