Documentation
¶
Index ¶
Constants ¶
View Source
const ( ID = "id" Name = "Databases" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB interface { // SaveDatabase create database if not exists. SaveDatabase(ctx context.Context, name string) (id string, err error) // SaveTable create or update table. SaveTable(ctx context.Context, database string, table Table) (string, error) // ListTables list table by database. ListTables(ctx context.Context, database string) []string // DropTable should return err if database or table not exists. DropTable(ctx context.Context, database, table string) error // Create table record. id is generated. Create(ctx context.Context, database, table string, record map[string]interface{}) (id string, err error) // Read table records. Read(ctx context.Context, database, table string, ss []SearchCmd) []map[string]interface{} // Update record by id. Update(ctx context.Context, database, table, id string, record map[string]interface{}) error // Delete record by id. Delete(ctx context.Context, database, table, id string) error }
type FieldManager ¶
type FieldManager interface { ListFields(ctx context.Context, appToken string, tableId string) ([]*larkBitable.AppTableField, error) CreateField(ctx context.Context, appToken string, tableId string, body *larkBitable.AppTableField) (string, error) UpdateField(ctx context.Context, appToken string, tableId string, body *larkBitable.AppTableField) error DeleteField(ctx context.Context, appToken string, tableId, fieldId string) error }
Click to show internal directories.
Click to hide internal directories.