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

@@ -34,6 +34,12 @@ func (t *DbService) Delete(request *DeleteRequest) (*DeleteResponse, error) {
return rsp, t.client.Call("db", "Delete", request, rsp)
}
// Drop a table in the DB
func (t *DbService) DropTable(request *DropTableRequest) (*DropTableResponse, error) {
rsp := &DropTableResponse{}
return rsp, t.client.Call("db", "DropTable", request, rsp)
}
// List tables in the DB
func (t *DbService) ListTables(request *ListTablesRequest) (*ListTablesResponse, error) {
rsp := &ListTablesResponse{}
@@ -96,6 +102,13 @@ type DeleteRequest struct {
type DeleteResponse struct {
}
type DropTableRequest struct {
Table string `json:"table"`
}
type DropTableResponse struct {
}
type ListTablesRequest struct {
}
@@ -141,13 +154,10 @@ type RenameTableResponse struct {
}
type TruncateRequest struct {
// Optional table name. Defaults to 'default'
Table string `json:"table"`
}
type TruncateResponse struct {
// The table truncated
Table string `json:"table"`
}
type UpdateRequest struct {

View File

@@ -79,5 +79,5 @@
"prepare": "npm run build"
},
"types": "index.d.ts",
"version": "1.0.738"
"version": "1.0.741"
}