Documentation ¶
Index ¶
- Constants
- type DbClient
- func (client *DbClient) Info() (*Result, error)
- func (client *DbClient) Query(query string) (*Result, error)
- func (client *DbClient) Table(table string) (*Result, error)
- func (client *DbClient) TableIndexes(table string) (*Result, error)
- func (client *DbClient) TableInfo(table string) (*Result, error)
- func (client *DbClient) TableSql(table string) ([]string, error)
- func (client *DbClient) Tables() ([]string, error)
- type Result
- type Row
Constants ¶
View Source
const ( SQLITE_INFO = `` /* 196-byte string literal not displayed */ SQLITE_TABLES = "SELECT name FROM sqlite_master WHERE type='table';" SQLITE_TABLE_SCHEMA = "PRAGMA table_info(%s);" SQLITE_TABLE_INFO = "SELECT COUNT(*) FROM %s;" SQLITE_TABLE_SQL = "SELECT sql FROM sqlite_master WHERE type='table' AND name='%s'" SQLITE_TABLE_INDEXES = "SELECT * FROM sqlite_master WHERE type='index' AND tbl_name='%s'" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbClient ¶
type DbClient struct { DbFile string // contains filtered or unexported fields }
func (*DbClient) TableIndexes ¶
TableIndexes returns the indexes for the given table.
Click to show internal directories.
Click to hide internal directories.