Files
m3o-go/examples/db/listTables/listTables/main.go
2021-11-16 10:36:24 +00:00

17 lines
239 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/db"
)
// List tables in the DB
func main() {
dbService := db.NewDbService(os.Getenv("M3O_API_TOKEN"))
rsp, err := dbService.ListTables(&db.ListTablesRequest{})
fmt.Println(rsp, err)
}