Documentation ¶
Index ¶
Constants ¶
const WriteModeInsert = "insert"
WriteModeInsert represents the insert into write mode.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { URL string `json:"url"` // Database URL, including the database address and other database parameters Username string `json:"username"` // Username Password string `json:"password"` // Password }
func NewConfig ¶
NewConfig creates an Oracle configuration and will report an error if the format does not meet the requirements
func (*Config) FetchConnectionParams ¶
func (c *Config) FetchConnectionParams() (con godror.ConnectionParams, err error)
FetchConnectionParams retrieves the Oracle connection parameters and will report an error if the URL is incorrect
type Dialect ¶
type Dialect struct{}
Dialect represents the database dialect for Oracle
type Field ¶
type Field struct { *database.BaseField database.BaseConfigSetter }
Field Field
type FieldType ¶
type FieldType struct { *database.BaseFieldType // contains filtered or unexported fields }
FieldType Field type
func NewFieldType ¶
func NewFieldType(typ database.ColumnType) *FieldType
NewFieldType Create a new field type
func (*FieldType) IsSupported ¶
IsSupported Whether it supports parsing
type InsertParam ¶
InsertParam represents the parameters for the insert into operation.
func NewInsertParam ¶
func NewInsertParam(t database.Table, txOpts *sql.TxOptions) *InsertParam
NewInsertParam creates insert parameters based on the table and transaction options (txOpts).
type Scanner ¶
type Scanner struct { database.BaseScanner // contains filtered or unexported fields }
Scanner Scanner
func NewScanner ¶
NewScanner Generate a scanner based on the column type
func (*Scanner) Scan ¶
Scan Read data based on the column type BOOLEAN is treated as a bool type BINARY_INTEGER is treated as a bigint type NUMBER, FLOAT, DOUBLE are treated as decimal types TIMESTAMP, TIMESTAMP WITH TIME ZONE, TIMESTAMP WITH LOCAL TIME ZONE, DATE are treated as time types CLOB, NCLOB, VARCHAR2, NVARCHAR2, CHAR, NCHAR are treated as string types BLOB, RAW, LONG RAW, LONG are treated as byte types
type Source ¶
type Source struct { *database.BaseSource // Basic data source // contains filtered or unexported fields }
Source oracle refers to the Oracle data source
func (*Source) ConnectName ¶
ConnectName is the connection information for the Oracle data source using github.com/godror/godror
func (*Source) DriverName ¶
DriverName is the driver name for github.com/godror/godror
type Table ¶
type Table struct { *database.BaseTable database.BaseConfigSetter }
Table represents an Oracle table.
func NewTable ¶
NewTable creates a new Oracle table. Note that at this point, the schema parameter in BaseTable is empty, instance is the database name, and name is the table name.
func (*Table) ExecParam ¶
ExecParam retrieves execution parameters, where the replace into parameter mode has been registered.
func (*Table) ShouldOneByOne ¶
ShouldOneByOne specifies whether to retry one operation at a time.
func (*Table) ShouldRetry ¶
ShouldRetry determines whether a retry is necessary.