Commit from GitHub Actions (Publish APIs & Clients)

This commit is contained in:
asim
2021-10-22 19:41:37 +00:00
parent 5b3cb9948d
commit 5cee69a09e
125 changed files with 251 additions and 127 deletions

View File

@@ -2,8 +2,9 @@ package example
import (
"fmt"
"github.com/micro/services/clients/go/db"
"os"
"github.com/micro/services/clients/go/db"
)
// Create a record in the database. Optionally include an "id" field otherwise it's set automatically.
@@ -11,10 +12,10 @@ func CreateArecord() {
dbService := db.NewDbService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := dbService.Create(&db.CreateRequest{
Record: map[string]interface{}{
"name": "Jane",
"age": 42,
"isActive": true,
"id": "1",
"name": "Jane",
},
Table: "users",
})