db_reader

package
v0.0.0-...-82d44e7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportTablesToJSON

func ImportTablesToJSON(folderPath, dbtype, server, dbname, user, pass, port string)

func MSSQLTableToJSON

func MSSQLTableToJSON(table MSSQLTable) models.Object

func MySQLTableToJSON

func MySQLTableToJSON(table MySQLTable) models.Object

func ObjectsPOSTGRESSQL

func ObjectsPOSTGRESSQL(path, bd, user, pass, port string) []models.Object

func PostgreSQLTableToJSON

func PostgreSQLTableToJSON(table PostgreSQLTable) models.Object

func ReadObjects

func ReadObjects(dbType, path, bd, user, pass, port string) []models.Object

func ReadObjects2

func ReadObjects2(db_data models.DbData) []models.Object

Types

type MSSQLColumnDescription

type MSSQLColumnDescription struct {
	TABLE_QUALIFIER   string
	TABLE_OWNER       string
	TABLE_NAME        string
	COLUMN_NAME       string
	KEY               string
	DATA_TYPE         string
	TYPE_NAME         string
	PRECISION         float32
	LENGTH            float32
	SCALE             string
	RADIX             string
	NULLABLE          bool
	REMARKS           string
	COLUMN_DEF        string
	SQL_DATA_TYPE     int
	SQL_DATETIME_SUB  string
	CHAR_OCTET_LENGTH string
	ORDINAL_POSITION  int
	IS_NULLABLE       string
	SS_DATA_TYPE      int
}

type MSSQLTable

type MSSQLTable struct {
	Name    string
	Columns []MSSQLColumnDescription
}

type MySQLColumnDescription

type MySQLColumnDescription struct {
	Field   string
	Type    string
	Null    string
	Key     string
	Default string
	Extra   string
}

type MySQLTable

type MySQLTable struct {
	Name    string
	Columns []MySQLColumnDescription
}

type PostgreSQLColumnDescription

type PostgreSQLColumnDescription struct {
	Field   string
	Type    string
	Null    string
	Key     string
	Default string
	Extra   string
}

type PostgreSQLTable

type PostgreSQLTable struct {
	Name    string
	Columns []PostgreSQLColumnDescription
}

Jump to

Keyboard shortcuts

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