Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-16 13:39:32 +00:00
parent cc7d1911d5
commit 92cfa38f25
6 changed files with 50 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
package example
import (
"fmt"
"os"
"github.com/micro/services/clients/go/db"
)
// Drop a table in the DB
func DropTable() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.DropTable(&db.DropTableRequest{
Table: "users",
})
fmt.Println(rsp, err)
}