Documentation ¶
Overview ¶
Package postgres 实现了postgres的数据库方言Dialect,支持postgres 8.0+ 对应数据库
Index ¶
Constants ¶
View Source
const WriteModeCopyIn = "copyIn"
WriteModeCopyIn copy in写入方式
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { URL string `json:"url"` //数据库url,包含数据库地址,数据库其他参数 Username string `json:"username"` //用户名 Password string `json:"password"` //密码 }
Config postgres配置
type CopyInParam ¶
CopyInParam copy in 参数
func NewCopyInParam ¶
func NewCopyInParam(t database.Table, txOpts *sql.TxOptions) *CopyInParam
NewCopyInParam 通过表table和事务参数txOps插入参数
type FieldType ¶
type FieldType struct { *database.BaseFieldType // contains filtered or unexported fields }
FieldType 字段类型
type Scanner ¶
type Scanner struct { database.BaseScanner // contains filtered or unexported fields }
Scanner 扫描器
type Source ¶
type Source struct { *database.BaseSource //基础数据源 // contains filtered or unexported fields }
Source postgres数据源
func (*Source) ConnectName ¶
ConnectName github.com/Breeze0806/go/database/pqto的数据源连接信息
func (*Source) DriverName ¶
DriverName github.com/Breeze0806/go/database/pqto的驱动名
Click to show internal directories.
Click to hide internal directories.