Documentation
¶
Index ¶
Constants ¶
View Source
const ( StmtSelect = "select" StmtRow = "row" )
Variables ¶
View Source
var Once sync.Once
Functions ¶
func ReplaceTableName ¶
func UniqueNoNullSlice ¶
Types ¶
type DB ¶
var Instance *DB
func (*DB) Exec ¶
func (d *DB) Exec(sqlStr string) common_type.PluginError
func (*DB) ImportSql ¶
func (d *DB) ImportSql(sqlFileName, appUUID, version, instanceUUID string) common_type.PluginError
func (*DB) Select ¶
func (d *DB) Select(sqlStr string) (*protocol.TableMessage, common_type.PluginError)
type DataBase ¶
type DataBase struct { Source *protocol.PlatformMessage Distinct *protocol.PlatformMessage // contains filtered or unexported fields }
func NewDataBase ¶
func NewDataBase(sourceMessage *protocol.PlatformMessage, distinctMessage *protocol.PlatformMessage) *DataBase
Click to show internal directories.
Click to hide internal directories.