Documentation
¶
Index ¶
- type CollectionSql
- func (s CollectionSql) Create() string
- func (s CollectionSql) DeleteStmt() string
- func (s CollectionSql) Drop() string
- func (s CollectionSql) FindIdStmt() string
- func (s CollectionSql) Index(indexName string) IndexSql
- func (s CollectionSql) InsertStmt() string
- func (s CollectionSql) Rename(newName string) string
- func (s CollectionSql) TableName() string
- func (s CollectionSql) UpdateStmt() string
- func (s CollectionSql) With2Coll(sql, name string) string
- func (s CollectionSql) WithColl(sql string) string
- type DBSql
- func (s DBSql) Collection(name string) CollectionSql
- func (s DBSql) CountCollections() string
- func (s DBSql) CountIndexes() string
- func (s DBSql) FindCollection() string
- func (s DBSql) FindCollections() string
- func (s DBSql) FindIndexes() string
- func (s DBSql) InitDB() string
- func (s DBSql) RegisterCollectionStmt() string
- func (s DBSql) RegisterIndexStmt() string
- func (s DBSql) RemoveCollectionStmt() string
- func (s DBSql) RemoveIndexStmt() string
- func (s DBSql) RenameCollectionIndexStmt() string
- func (s DBSql) RenameCollectionStmt() string
- func (s DBSql) StatsDataSize() string
- func (s DBSql) StatsTotalSize() string
- func (s DBSql) WithNS(sql string) string
- type IndexSql
- func (s IndexSql) Create(unique bool, fieldsIsDesc []bool) string
- func (s IndexSql) DeleteStmt(numFields int) string
- func (s IndexSql) Drop() string
- func (s IndexSql) InsertStmt(numFields int) string
- func (s IndexSql) RenameColl(newCollName string) string
- func (s IndexSql) TableName() string
- func (s IndexSql) WithIndex(sql string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionSql ¶
func (CollectionSql) Create ¶
func (s CollectionSql) Create() string
func (CollectionSql) DeleteStmt ¶
func (s CollectionSql) DeleteStmt() string
func (CollectionSql) Drop ¶
func (s CollectionSql) Drop() string
func (CollectionSql) FindIdStmt ¶
func (s CollectionSql) FindIdStmt() string
func (CollectionSql) Index ¶
func (s CollectionSql) Index(indexName string) IndexSql
func (CollectionSql) InsertStmt ¶
func (s CollectionSql) InsertStmt() string
func (CollectionSql) Rename ¶
func (s CollectionSql) Rename(newName string) string
func (CollectionSql) TableName ¶
func (s CollectionSql) TableName() string
func (CollectionSql) UpdateStmt ¶
func (s CollectionSql) UpdateStmt() string
func (CollectionSql) With2Coll ¶
func (s CollectionSql) With2Coll(sql, name string) string
func (CollectionSql) WithColl ¶
func (s CollectionSql) WithColl(sql string) string
type DBSql ¶
type DBSql struct {
Namespace string
}
func (DBSql) Collection ¶
func (s DBSql) Collection(name string) CollectionSql
func (DBSql) CountCollections ¶
func (DBSql) CountIndexes ¶
func (DBSql) FindCollection ¶
func (DBSql) FindCollections ¶
func (DBSql) FindIndexes ¶
func (DBSql) RegisterCollectionStmt ¶
func (DBSql) RegisterIndexStmt ¶
func (DBSql) RemoveCollectionStmt ¶
func (DBSql) RemoveIndexStmt ¶
func (DBSql) RenameCollectionIndexStmt ¶
func (DBSql) RenameCollectionStmt ¶
func (DBSql) StatsDataSize ¶
func (DBSql) StatsTotalSize ¶
type IndexSql ¶
type IndexSql struct { CollectionSql IndexName string }
func (IndexSql) DeleteStmt ¶
func (IndexSql) InsertStmt ¶
func (IndexSql) RenameColl ¶
Click to show internal directories.
Click to hide internal directories.