Documentation ¶
Index ¶
- Constants
- type Column
- func (column *Column) DataLength() int
- func (column *Column) DataPrecision() int
- func (column *Column) DataScale() int
- func (column *Column) DefaultDataPrecision() bool
- func (column *Column) DefaultDataScale() bool
- func (column *Column) FullName() string
- func (column *Column) IsVirtual() bool
- func (column *Column) Key() bool
- func (column *Column) Name() string
- func (column *Column) Nullable() bool
- func (column *Column) OracleBaseType() string
- func (column *Column) OracleName() string
- func (column *Column) OracleSQLName() string
- func (column *Column) OracleSQLSelect() (string, error)
- func (column *Column) OracleTable() *Table
- func (column *Column) OracleType() string
- func (column *Column) Table() base.Table
- func (column *Column) ToOldColumn() (*abstract.ColSchema, error)
- func (column *Column) Type() base.Type
- func (column *Column) Value(val interface{}) (base.Value, error)
- type ColumnRow
- type Database
- func (db *Database) CLOBAsBLOB() (bool, error)
- func (db *Database) CLOBToBLOBFunctionExists() bool
- func (db *Database) Config() *oracle.OracleSource
- func (db *Database) FullName() string
- func (db *Database) LoadAllTables() error
- func (db *Database) LoadMetadata() error
- func (db *Database) LoadTable(tableID *common.TableID) error
- func (db *Database) LoadTables(tableIDs []*common.TableID, in bool) error
- func (db *Database) LoadTablesFromConfig() error
- func (db *Database) Name() string
- func (db *Database) OracleSchema(i int) *Schema
- func (db *Database) OracleSchemaByName(name string) *Schema
- func (db *Database) OracleTableByID(tableID *common.TableID) *Table
- func (db *Database) SchemasCount() int
- type Index
- type IndexRow
- type IndexType
- type NamesRow
- type Schema
- func (schema *Schema) FullName() string
- func (schema *Schema) Name() string
- func (schema *Schema) OracleDatabase() *Database
- func (schema *Schema) OracleName() string
- func (schema *Schema) OracleSQLName() string
- func (schema *Schema) OracleTable(i int) *Table
- func (schema *Schema) OracleTableByName(name string) *Table
- func (schema *Schema) TablesCount() int
- type Table
- func (table *Table) Column(i int) base.Column
- func (table *Table) ColumnByName(name string) base.Column
- func (table *Table) ColumnsCount() int
- func (table *Table) Database() string
- func (table *Table) FullName() string
- func (table *Table) Name() string
- func (table *Table) OracleColumn(i int) *Column
- func (table *Table) OracleColumnByName(name string) *Column
- func (table *Table) OracleIndexByName(name string) *Index
- func (table *Table) OracleKeyIndex() *Index
- func (table *Table) OracleName() string
- func (table *Table) OracleSQLName() string
- func (table *Table) OracleSchema() *Schema
- func (table *Table) OracleTableID() *common.TableID
- func (table *Table) Schema() string
- func (table *Table) ToOldTable() (*abstract.TableSchema, error)
- type TableIDRow
Constants ¶
View Source
const ( IndexTypePrimaryKey = IndexType(1) IndexTypeUnique = IndexType(2) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
func (*Column) DataLength ¶
func (*Column) DataPrecision ¶
func (*Column) DefaultDataPrecision ¶
func (*Column) DefaultDataScale ¶
func (*Column) OracleBaseType ¶
func (*Column) OracleName ¶
func (*Column) OracleSQLName ¶
func (*Column) OracleSQLSelect ¶
func (*Column) OracleTable ¶
func (*Column) OracleType ¶
type ColumnRow ¶
type ColumnRow struct { SchemaName string `db:"OWNER"` TableName string `db:"TABLE_NAME"` ColumnName string `db:"COLUMN_NAME"` DataType *string `db:"DATA_TYPE"` DataLength int `db:"DATA_LENGTH"` DataPrecision *int `db:"DATA_PRECISION"` DataScale *int `db:"DATA_SCALE"` Nullable *string `db:"NULLABLE"` Virtual *string `db:"VIRTUAL_COLUMN"` }
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewDatabase ¶
func (*Database) CLOBAsBLOB ¶
func (*Database) CLOBToBLOBFunctionExists ¶
func (*Database) Config ¶
func (db *Database) Config() *oracle.OracleSource
func (*Database) LoadAllTables ¶
func (*Database) LoadMetadata ¶
func (*Database) LoadTables ¶
func (*Database) LoadTablesFromConfig ¶
func (*Database) OracleSchema ¶
func (*Database) OracleSchemaByName ¶
func (*Database) OracleTableByID ¶
func (*Database) SchemasCount ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) ColumnsCount ¶
func (*Index) OracleName ¶
func (*Index) OracleTable ¶
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) OracleDatabase ¶
func (*Schema) OracleName ¶
func (*Schema) OracleSQLName ¶
func (*Schema) OracleTable ¶
func (*Schema) OracleTableByName ¶
func (*Schema) TablesCount ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (*Table) ColumnsCount ¶
func (*Table) OracleColumn ¶
func (*Table) OracleColumnByName ¶
func (*Table) OracleIndexByName ¶
func (*Table) OracleKeyIndex ¶
func (*Table) OracleName ¶
func (*Table) OracleSQLName ¶
func (*Table) OracleSchema ¶
func (*Table) OracleTableID ¶
func (*Table) ToOldTable ¶
func (table *Table) ToOldTable() (*abstract.TableSchema, error)
type TableIDRow ¶
Click to show internal directories.
Click to hide internal directories.