You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

492 B

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.