contract

package
v0.0.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	DSN() string
	Connect() (err error)
	Close() (err error)
	GetDriverImportLibrary() string

	GetTables() (tables []*object_model.Table, err error)
	PrepareGetColumnsOfTableStmt() (err error)
	GetColumnsOfTable(table *object_model.Table) (err error)

	IsPrimaryKey(column object_model.Column) bool
	IsAutoIncrement(column object_model.Column) bool
	IsNullable(column object_model.Column) bool

	GetStringDatatypes() []string
	IsString(column object_model.Column) bool

	GetTextDatatypes() []string
	IsText(column object_model.Column) bool

	GetIntegerDatatypes() []string
	IsInteger(column object_model.Column) bool

	GetFloatDatatypes() []string
	IsFloat(column object_model.Column) bool

	GetTemporalDatatypes() []string
	IsTemporal(column object_model.Column) bool
	GetTemporalDriverDataType() string
}

Database interface for the concrete databases

type IDatabases

type IDatabases interface {
	ConnectDatabase()
	BeginDatabaseTransaction() *sqlx.Tx
	CloseDatabase()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL