Documentation ¶
Overview ¶
Package oracle 实现了oracle的数据库方言Dialect,支持oracle 10.5+ 对应数据库
Index ¶
Constants ¶
View Source
const WriteModeInsert = "insert"
WriteModeInsert intert into 写入方式
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 配置
func (*Config) FetchConnectionParams ¶
func (c *Config) FetchConnectionParams() (con godror.ConnectionParams, err error)
FetchConnectionParams 获取oracle连接参数,url有错会报错
type FieldType ¶
type FieldType struct { *database.BaseFieldType // contains filtered or unexported fields }
FieldType 字段类型
type InsertParam ¶
InsertParam Insert into 参数
func NewInsertParam ¶
func NewInsertParam(t database.Table, txOpts *sql.TxOptions) *InsertParam
NewInsertParam 通过表table和事务参数txOpts插入参数
type Scanner ¶
type Scanner struct { database.BaseScanner // contains filtered or unexported fields }
Scanner 扫描器
func (*Scanner) Scan ¶
Scan 根据列类型读取数据 "BOOLEAN" 做为bool类型处理 "BINARY_INTEGER" 做为bigint类型处理 "NUMBER", "FLOAT", "DOUBLE" 做为decimal类型处理 "TIMESTAMP", "TIMESTAMP WITH TIME ZONE", "TIMESTAMP WITH LOCAL TIME ZONE", "DATE"做为time类型处理 "CLOB", "NCLOB", "VARCHAR2", "NVARCHAR2", "CHAR", "NCHAR"做为string类型处理 "BLOB", "RAW", "LONG RAW", "LONG" 做为bytes类型处理
type Source ¶
type Source struct { *database.BaseSource //基础数据源 // contains filtered or unexported fields }
Source oracle数据源
func (*Source) ConnectName ¶
ConnectName github.com/godror/godror的数据源连接信息
func (*Source) DriverName ¶
DriverName github.com/godror/godror的驱动名
Click to show internal directories.
Click to hide internal directories.