Documentation
¶
Index ¶
- Constants
- Variables
- type Base
- func (s *Base) AddLink(linkID, tableName, otherTableName, rowID, otherRowID string) (map[string]interface{}, error)
- func (s *Base) AppendRow(tableName string, rowData interface{}) (map[string]interface{}, error)
- func (s *Base) Auth(withSocketIO bool) error
- func (s *Base) BatchAppendRows(tableName string, rowsData []interface{}) (map[string]interface{}, error)
- func (s *Base) BatchDeleteRows(tableName string, rowIDs interface{}) (map[string]interface{}, error)
- func (s *Base) Clone() (*Base, error)
- func (s *Base) DeleteColumn(tableName, columnKey string) (map[string]interface{}, error)
- func (s *Base) DeleteRow(tableName, rowID string) (map[string]interface{}, error)
- func (s *Base) DownloadFile(url, savePath string) error
- func (s *Base) FilterRows(tableName string, filters []map[string]interface{}, viewName string, ...) (interface{}, error)
- func (s *Base) FreezeColumn(tableName, columnKey string, frozen bool) (map[string]interface{}, error)
- func (s *Base) GetColumnLinkID(tableName, columnName, viewName string) (interface{}, error)
- func (s *Base) GetFileDownloadLink(path string) (interface{}, error)
- func (s *Base) GetFileUploadLink() (map[string]interface{}, error)
- func (s *Base) GetMetadata() (interface{}, error)
- func (s *Base) InsertColumn(tableName, columnName string, columnType ColumnTypes, columnKey string) (map[string]interface{}, error)
- func (s *Base) InsertRow(tableName string, rowData interface{}, anchorRowID string) (map[string]interface{}, error)
- func (s *Base) ListColumns(tableName, viewName string) (interface{}, error)
- func (s *Base) ListRows(tableName, viewName string, limit int) (interface{}, error)
- func (s *Base) ModifyColumnType(tableName, columnKey string, newColumnType ColumnTypes) (map[string]interface{}, error)
- func (s *Base) Query(sql string, convert bool) (interface{}, error)
- func (s *Base) RemoveLink(linkID, tableName, otherTableName, rowID, otherRowID string) (map[string]interface{}, error)
- func (s *Base) RenameColumn(tableName, columnKey, newColumnName string) (map[string]interface{}, error)
- func (s *Base) ResizeColumn(tableName, columnKey string, newColumnWidth int) (map[string]interface{}, error)
- func (s *Base) UpdateRow(tableName string, rowID string, rowData interface{}) (map[string]interface{}, error)
- func (s *Base) UploadBytesFile(name string, r io.Reader, relativePath, fileType string, replace bool) (map[string]interface{}, error)
- func (s *Base) UploadLocalFile(filePath, name, relativePath, fileType string, replace bool) (map[string]interface{}, error)
- type ColumnTypes
- type Message
- type SocketIO
Constants ¶
View Source
const ( RENAME_COLUMN = "rename_column" RESIZE_COLUMN = "resize_column" FREEZE_COLUMN = "freeze_column" MOVE_COLUMN = "move_column" MODIFY_COLUMN_TYPE = "modify_column_type" DELETE_COLUMN = "delete_column" JOIN_ROOM = "join-room" UPDATE_DTABLE = "update-dtable" NEW_NOTIFICATION = "new-notification" )
Variables ¶
View Source
var ROW_FILTER_KEYS []string = []string{"column_name", "filter_predicate", "filter_term", "filter_term_modifier"}
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
Token string
ServerURL string
DtableServerURL string
DtableDbUrl string
JwtToken string
JwtExp int64
Headers map[string]string
WorkspaceID int
DtableUUID string
DtableName string
Timeout int
Client *SocketIO
}
func (*Base) BatchAppendRows ¶
func (*Base) BatchDeleteRows ¶
func (*Base) DeleteColumn ¶
func (*Base) DownloadFile ¶
func (*Base) FilterRows ¶
func (*Base) FreezeColumn ¶
func (*Base) GetColumnLinkID ¶
func (*Base) GetFileDownloadLink ¶
func (*Base) GetFileUploadLink ¶
func (*Base) GetMetadata ¶
func (*Base) InsertColumn ¶
func (*Base) ListColumns ¶
func (*Base) ModifyColumnType ¶
func (s *Base) ModifyColumnType(tableName, columnKey string, newColumnType ColumnTypes) (map[string]interface{}, error)
func (*Base) RemoveLink ¶
func (*Base) RenameColumn ¶
func (*Base) ResizeColumn ¶
func (*Base) UploadBytesFile ¶
type ColumnTypes ¶
type ColumnTypes string
Click to show internal directories.
Click to hide internal directories.