Versions in this module Expand all Collapse all v2 v2.0.3 Jul 8, 2020 v2.0.2 Jul 8, 2020 Changes in this version + const ConflictModeInster + const ConflictModeUpsert + const FileTypeCsv + const FileTypeJSON + var ValidDirections = []string + type BatchDeleteFileReq struct + Env string + FileIDList []string + type BatchDeleteFileRes struct + DeleteList []struct{ ... } + type BatchDownloadFileReq struct + Env string + FileList []*DownloadFile + type BatchDownloadFileRes struct + FileList []struct{ ... } + type ConflictMode int + type CreateIndex struct + Keys []CreateIndexKey + Name string + Unique bool + type CreateIndexKey struct + Direction string + Name string + type DatabaseAddRes struct + IDList []string + type DatabaseCollectionGetReq struct + Env string + Limit int64 + Offset int64 + type DatabaseCollectionGetRes struct + Collections []struct{ ... } + Pager struct{ ... } + type DatabaseCollectionReq struct + CollectionName string + Env string + type DatabaseCountRes struct + Count int64 + type DatabaseDeleteRes struct + Deleted int64 + type DatabaseMigrateExportReq struct + Env string + FilePath string + FileType FileType + Query string + type DatabaseMigrateExportRes struct + JobID int64 + type DatabaseMigrateImportReq struct + CollectionName string + ConflictMode ConflictMode + Env string + FilePath string + FileType FileType + StopOnError bool + type DatabaseMigrateImportRes struct + JobID int64 + type DatabaseMigrateQueryInfoRes struct + ErrMsg string + FileURL string + RecordFail int64 + RecordSuccess int64 + Status string + type DatabaseQueryRes struct + Data []string + Pager struct{ ... } + type DatabaseReq struct + Env string + Query string + type DatabaseUpdateRes struct + ID string + Matched int64 + Modified int64 + type DownloadFile struct + FileID string + MaxAge int64 + type DropIndex struct + Name string + type FileType int + type InvokeCloudFunctionRes struct + RespData string + type Tcb struct + func NewTcb(context *context.Context) *Tcb + func (tcb *Tcb) BatchDeleteFile(env string, fileIDList []string) (*BatchDeleteFileRes, error) + func (tcb *Tcb) BatchDownloadFile(env string, fileList []*DownloadFile) (*BatchDownloadFileRes, error) + func (tcb *Tcb) DatabaseAdd(env, query string) (*DatabaseAddRes, error) + func (tcb *Tcb) DatabaseCollectionAdd(env, collectionName string) error + func (tcb *Tcb) DatabaseCollectionDelete(env, collectionName string) error + func (tcb *Tcb) DatabaseCollectionGet(env string, limit, offset int64) (*DatabaseCollectionGetRes, error) + func (tcb *Tcb) DatabaseCount(env, query string) (*DatabaseCountRes, error) + func (tcb *Tcb) DatabaseDelete(env, query string) (*DatabaseDeleteRes, error) + func (tcb *Tcb) DatabaseMigrateExport(req *DatabaseMigrateExportReq) (*DatabaseMigrateExportRes, error) + func (tcb *Tcb) DatabaseMigrateImport(req *DatabaseMigrateImportReq) (*DatabaseMigrateImportRes, error) + func (tcb *Tcb) DatabaseMigrateQueryInfo(env string, jobID int64) (*DatabaseMigrateQueryInfoRes, error) + func (tcb *Tcb) DatabaseQuery(env, query string) (*DatabaseQueryRes, error) + func (tcb *Tcb) DatabaseUpdate(env, query string) (*DatabaseUpdateRes, error) + func (tcb *Tcb) InvokeCloudFunction(env, name, args string) (*InvokeCloudFunctionRes, error) + func (tcb *Tcb) UpdateIndex(req *UpdateIndexReq) error + func (tcb *Tcb) UploadFile(env, path string) (*UploadFileRes, error) + type UpdateIndexReq struct + CollectionName string + CreateIndexes []CreateIndex + DropIndexes []DropIndex + Env string + type UploadFileReq struct + Env string + Path string + type UploadFileRes struct + Authorization string + CosFileID string + FileID string + Token string + URL string