mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
18 lines
287 B
Go
Executable File
18 lines
287 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/go.m3o.com/db"
|
|
)
|
|
|
|
// Truncate the records in a table
|
|
func TruncateTable() {
|
|
dbService := db.NewDbService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := dbService.Truncate(&db.TruncateRequest{
|
|
Table: "users",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|