This repository has been archived on 2022-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
manual-en-US/chapter-03/2.tables.md
2020-03-27 14:29:41 +08:00

19 lines
492 B
Markdown

## 3.2.directly table operation
* CreateTables()
`engine.CreateTables(struct)` creates table with struct or struct pointer.
`engine.Charset()` and `engine.StoreEngine()` can change charset or storage engine for **mysql** database.
* IsTableEmpty()
check table is empty or not.
* IsTableExist()
check table is existed or not.
* DropTables()
`engine.DropTables(struct)` drops table and indexes with struct or struct pointer. `engine.DropTables(string)` only drops table except indexes.