Documentation
¶
Index ¶
- Constants
- type MySQL
- func (sf *MySQL) GetCreateTableSQL(tbName string) (string, error)
- func (sf *MySQL) GetDatabase(dbName string, tbNames ...string) (*view.Database, error)
- func (sf *MySQL) GetTableColumns(dbName string, tb view.TableAttribute) (*view.Table, error)
- func (sf *MySQL) GetTables(dbName string, tbNames ...string) ([]view.TableAttribute, error)
- type SQLite
- func (sf *SQLite) GetCreateTableSQL(tbName string) (string, error)
- func (sf *SQLite) GetDatabase(dbName string, tbNames ...string) (*view.Database, error)
- func (sf *SQLite) GetTableColumns(dbName string, tb view.TableAttribute) (*view.Table, error)
- func (sf *SQLite) GetTables(dbName string, tbNames ...string) ([]view.TableAttribute, error)
Constants ¶
View Source
const Primary = "PRIMARY"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
func (*MySQL) GetCreateTableSQL ¶
GetCreateTableSQL get create table sql
func (*MySQL) GetDatabase ¶
GetDatabase get database information
func (*MySQL) GetTableColumns ¶
GetTableColumns get table's column info.
type SQLite ¶
func (*SQLite) GetCreateTableSQL ¶
GetCreateTableSQL get create table sql
func (*SQLite) GetDatabase ¶
GetDbInfo get database info 获取数据库信息
func (*SQLite) GetTableColumns ¶
GetTableColumns get table's column info. 获取表的所有列的信息
Click to show internal directories.
Click to hide internal directories.