db

package
v0.0.0-...-ecc1c5d Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(dbase *parser.Database) error

Connect connects to a database based on it's type returns error if connection fails

func Disconnect

func Disconnect(dbase *parser.Database)

Disconnect disconnects from given database

func GetTables

func GetTables(dbase *parser.Database) ([]string, error)

GetTables present in database

Types

type Column

type Column struct {
	TableName  string
	ColumnName string
	DataType   string
	MinVal     int64
	MaxVal     int64
	CurrentVal int64
}

Column represents a column in table in database

func GetColumsAboveThreshold

func GetColumsAboveThreshold(dbase *parser.Database) ([]Column, error)

GetColumsAboveThreshold get all tables which are having any auto increment field above threshold

Jump to

Keyboard shortcuts

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