query

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDBName

func GetDBName(sql string) (string, error)

GetDBName gets the db name from the given sql

func GetTableNames

func GetTableNames(sql string) ([]string, error)

GetTableName gets the table names from the given sql

Types

type DBRange added in v1.1.1

type DBRange struct {
	Token     string `json:"token" binding:"required"`
	DBID      int    `json:"db_id" bind:"required"`
	StartTime string `json:"start_time" bind:"required"`
	EndTime   string `json:"end_time" bind:"required"`
	Limit     int    `json:"limit" bind:"required"`
	Offset    int    `json:"offset" bind:"required"`
	LoginName string `json:"login_name" bind:"required"`
}

func (*DBRange) GetConfig added in v1.1.1

func (dr *DBRange) GetConfig() (depquery.Config, error)

GetConfig gets the configuration

func (*DBRange) GetDBID added in v1.1.1

func (dr *DBRange) GetDBID() int

GetDBID returns the db id

func (*DBRange) GetEndTime added in v1.1.1

func (dr *DBRange) GetEndTime() string

GetEndTime returns the end time

func (*DBRange) GetLimit added in v1.1.1

func (dr *DBRange) GetLimit() int

GetLimit returns the limit

func (*DBRange) GetLoginName added in v1.1.1

func (dr *DBRange) GetLoginName() string

GetLoginName returns the login name

func (*DBRange) GetOffset added in v1.1.1

func (dr *DBRange) GetOffset() int

GetOffset returns the offset

func (*DBRange) GetStartTime added in v1.1.1

func (dr *DBRange) GetStartTime() string

GetStartTime returns the start time

func (*DBRange) GetToken added in v1.1.1

func (dr *DBRange) GetToken() string

GetToken returns the token

type HostInfoRange added in v1.1.1

type HostInfoRange struct {
	Token     string `json:"token" binding:"required"`
	HostIP    string `json:"host_ip" bind:"required"`
	PortNum   int    `json:"port_num" bind:"required"`
	StartTime string `json:"start_time" bind:"required"`
	EndTime   string `json:"end_time" bind:"required"`
	Limit     int    `json:"limit" bind:"required"`
	Offset    int    `json:"offset" bind:"required"`
	LoginName string `json:"login_name" bind:"required"`
}

func (*HostInfoRange) GetConfig added in v1.1.1

func (hir *HostInfoRange) GetConfig() (depquery.Config, error)

GetConfig gets the configuration

func (*HostInfoRange) GetEndTime added in v1.1.1

func (hir *HostInfoRange) GetEndTime() string

GetEndTime returns the end time

func (*HostInfoRange) GetHostIP added in v1.1.1

func (hir *HostInfoRange) GetHostIP() string

GetHostIP returns the host ip

func (*HostInfoRange) GetLimit added in v1.1.1

func (hir *HostInfoRange) GetLimit() int

GetLimit returns the limit

func (*HostInfoRange) GetLoginName added in v1.1.1

func (hir *HostInfoRange) GetLoginName() string

GetLoginName returns the login name

func (*HostInfoRange) GetOffset added in v1.1.1

func (hir *HostInfoRange) GetOffset() int

GetOffset returns the offset

func (*HostInfoRange) GetPortNum added in v1.1.1

func (hir *HostInfoRange) GetPortNum() int

GetPortNum returns the port number

func (*HostInfoRange) GetStartTime added in v1.1.1

func (hir *HostInfoRange) GetStartTime() string

GetStartTime returns the start time

func (*HostInfoRange) GetToken added in v1.1.1

func (hir *HostInfoRange) GetToken() string

GetToken returns the token

type MySQLClusterRange added in v1.1.1

type MySQLClusterRange struct {
	Token          string `json:"token" binding:"required"`
	MySQLClusterID int    `json:"mysql_cluster_id" bind:"required"`
	StartTime      string `json:"start_time" bind:"required"`
	EndTime        string `json:"end_time" bind:"required"`
	Limit          int    `json:"limit" bind:"required"`
	Offset         int    `json:"offset" bind:"required"`
	LoginName      string `json:"login_name" bind:"required"`
}

func (*MySQLClusterRange) GetConfig added in v1.1.1

func (mcr *MySQLClusterRange) GetConfig() (depquery.Config, error)

GetConfig gets the configuration

func (*MySQLClusterRange) GetEndTime added in v1.1.1

func (mcr *MySQLClusterRange) GetEndTime() string

GetEndTime returns the end time

func (*MySQLClusterRange) GetLimit added in v1.1.1

func (mcr *MySQLClusterRange) GetLimit() int

GetLimit returns the limit

func (*MySQLClusterRange) GetLoginName added in v1.1.1

func (mcr *MySQLClusterRange) GetLoginName() string

GetLoginName returns the login name

func (*MySQLClusterRange) GetMySQLClusterID added in v1.1.1

func (mcr *MySQLClusterRange) GetMySQLClusterID() int

GetMySQLClusterID() returns the mysql cluster id

func (*MySQLClusterRange) GetOffset added in v1.1.1

func (mcr *MySQLClusterRange) GetOffset() int

GetOffset returns the offset

func (*MySQLClusterRange) GetStartTime added in v1.1.1

func (mcr *MySQLClusterRange) GetStartTime() string

GetStartTime returns the start time

func (*MySQLClusterRange) GetToken added in v1.1.1

func (mcr *MySQLClusterRange) GetToken() string

GetToken returns the token

type MySQLServerRange added in v1.1.1

type MySQLServerRange struct {
	Token         string `json:"token" binding:"required"`
	MySQLServerID int    `json:"mysql_server_id" bind:"required"`
	StartTime     string `json:"start_time" bind:"required"`
	EndTime       string `json:"end_time" bind:"required"`
	Limit         int    `json:"limit" bind:"required"`
	Offset        int    `json:"offset" bind:"required"`
	LoginName     string `json:"login_name" bind:"required"`
}

func (*MySQLServerRange) GetConfig added in v1.1.1

func (msr *MySQLServerRange) GetConfig() (depquery.Config, error)

GetConfig gets the configuration

func (*MySQLServerRange) GetEndTime added in v1.1.1

func (msr *MySQLServerRange) GetEndTime() string

GetEndTime returns the end time

func (*MySQLServerRange) GetLimit added in v1.1.1

func (msr *MySQLServerRange) GetLimit() int

GetLimit returns the limit

func (*MySQLServerRange) GetLoginName added in v1.1.1

func (msr *MySQLServerRange) GetLoginName() string

GetLoginName returns the login name

func (*MySQLServerRange) GetMySQLServerID added in v1.1.1

func (msr *MySQLServerRange) GetMySQLServerID() int

GetMySQLServerID returns the mysql server id

func (*MySQLServerRange) GetOffset added in v1.1.1

func (msr *MySQLServerRange) GetOffset() int

GetOffset returns the offset

func (*MySQLServerRange) GetStartTime added in v1.1.1

func (msr *MySQLServerRange) GetStartTime() string

GetStartTime returns the start time

func (*MySQLServerRange) GetToken added in v1.1.1

func (msr *MySQLServerRange) GetToken() string

GetToken returns the token

type SQLIDRange added in v1.1.1

type SQLIDRange struct {
	Token         string `json:"token" binding:"required"`
	MySQLServerID int    `json:"mysql_server_id" bind:"required"`
	SQLID         string `json:"sql_id" bind:"required"`
	StartTime     string `json:"start_time" bind:"required"`
	EndTime       string `json:"end_time" bind:"required"`
	Limit         int    `json:"limit" bind:"required"`
	Offset        int    `json:"offset" bind:"required"`
	LoginName     string `json:"login_name" bind:"required"`
}

func (*SQLIDRange) GetConfig added in v1.1.1

func (sir *SQLIDRange) GetConfig() (depquery.Config, error)

GetConfig gets the configuration

func (*SQLIDRange) GetEndTime added in v1.1.1

func (sir *SQLIDRange) GetEndTime() string

GetEndTime returns the end time

func (*SQLIDRange) GetLimit added in v1.1.1

func (sir *SQLIDRange) GetLimit() int

GetLimit returns the limit

func (*SQLIDRange) GetLoginName added in v1.1.1

func (sir *SQLIDRange) GetLoginName() string

GetLoginName returns the login name

func (*SQLIDRange) GetMySQLServerID added in v1.1.1

func (sir *SQLIDRange) GetMySQLServerID() int

GetMySQLServerID returns the mysql server id

func (*SQLIDRange) GetOffset added in v1.1.1

func (sir *SQLIDRange) GetOffset() int

GetOffset returns the offset

func (*SQLIDRange) GetSQLID added in v1.1.1

func (sir *SQLIDRange) GetSQLID() string

GetSQLID returns the sql id

func (*SQLIDRange) GetStartTime added in v1.1.1

func (sir *SQLIDRange) GetStartTime() string

GetStartTime returns the start time

func (*SQLIDRange) GetToken added in v1.1.1

func (sir *SQLIDRange) GetToken() string

GetToken returns the token

Jump to

Keyboard shortcuts

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