Documentation ¶
Overview ¶
Package oracle encapsulates an implementation for a given schema attached to a generator. This code represents an example implementation for oracle
Index ¶
- func BindingInsertSQL(schTable *schema.Table, tableName string, colNames []string, ...) string
- func DynamicObjectSetter(s *sg.SQLGenerator, schTable *schema.Table, columnNames []string, ...) error
- func GetLock(g *sg.SQLGenerator, sch *schema.Schema, lockStr string) (string, []interface{}, error)
- func IsFloatingType(k string) bool
- func IsLOBType(k string) bool
- func IsNumberType(k string) bool
- func IsStringType(k string) bool
- func IsTimestampType(k string) bool
- func MakeColumnPointers(s *sg.SQLGenerator, schTable *schema.Table, columnNames []string, ...) ([]interface{}, error)
- func New(g *sg.SQLGenerator) *sg.SQLGenerator
- func ReleaseLock(g *sg.SQLGenerator, sch *schema.Schema, lockStr string) (string, []interface{}, error)
- func RenderBindingValueWithInt(f *schema.Column, i int) string
- func RenderBindingValueWithIntNoColons(f *schema.Column, i int) string
- func RenderCreateColumn(sg *sg.SQLGenerator, f *schema.Column) string
- func RenderInsertValue(bindI *int, f *schema.Column, value interface{}) (interface{}, error)
- type LobDST
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindingInsertSQL ¶
func DynamicObjectSetter ¶
func DynamicObjectSetter(s *sg.SQLGenerator, schTable *schema.Table, columnNames []string, columnPointers []interface{}, columnTypes []*sql.ColumnType, obj *object.Object) error
DynamicObjectSetter is used to dynamically set the values of an object by checking the necessary types (via sql.ColumnType, and what the driver tells us we have for column types)
func IsFloatingType ¶
IsFloatingType can be used to help determine whether a certain data type is a float type. Note that it is case-sensitive.
func IsNumberType ¶
IsNumberType can be used to help determine whether a certain data type is a number type. Note that it is case-sensitive.
func IsStringType ¶
IsStringType can be used to help determine whether a certain data type is a string type. Note that it is case-sensitive.
func IsTimestampType ¶
IsTimestampType can be used to help determine whether a certain data type is a number type. Note that it is case-sensitive.
func MakeColumnPointers ¶
func MakeColumnPointers(s *sg.SQLGenerator, schTable *schema.Table, columnNames []string, columnTypes []*sql.ColumnType) ([]interface{}, error)
func New ¶
func New(g *sg.SQLGenerator) *sg.SQLGenerator
New shows off a sort of inheritance/composition-using-vtables approach. It receives the SQLGenerator composed by Core and then overrides any methods that it needs to. In some instances, this could be all methods, or hardly any.
func ReleaseLock ¶
func RenderCreateColumn ¶
func RenderCreateColumn(sg *sg.SQLGenerator, f *schema.Column) string