Versions in this module Expand all Collapse all v0 v0.0.4 Jun 30, 2024 Changes in this version + const CommandDisable + const CommandEnable + const CommandExecuteSQL + const CommandGetDatabaseTableNames + type Database struct + Domain string + ID ID + Name string + Version string + func (v *Database) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Database) UnmarshalJSON(data []byte) error + func (v Database) MarshalEasyJSON(w *jwriter.Writer) + func (v Database) MarshalJSON() ([]byte, error) + type DisableParams struct + func Disable() *DisableParams + func (p *DisableParams) Do(ctx context.Context) (err error) + func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *DisableParams) UnmarshalJSON(data []byte) error + func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v DisableParams) MarshalJSON() ([]byte, error) + type EnableParams struct + func Enable() *EnableParams + func (p *EnableParams) Do(ctx context.Context) (err error) + func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EnableParams) UnmarshalJSON(data []byte) error + func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer) + func (v EnableParams) MarshalJSON() ([]byte, error) + type Error struct + Code int64 + Message string + func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *Error) UnmarshalJSON(data []byte) error + func (v Error) MarshalEasyJSON(w *jwriter.Writer) + func (v Error) MarshalJSON() ([]byte, error) + type EventAddDatabase struct + Database *Database + func (v *EventAddDatabase) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *EventAddDatabase) UnmarshalJSON(data []byte) error + func (v EventAddDatabase) MarshalEasyJSON(w *jwriter.Writer) + func (v EventAddDatabase) MarshalJSON() ([]byte, error) + type ExecuteSQLParams struct + DatabaseID ID + Query string + func ExecuteSQL(databaseID ID, query string) *ExecuteSQLParams + func (p *ExecuteSQLParams) Do(ctx context.Context) (columnNames []string, values []easyjson.RawMessage, sqlError *Error, err error) + func (v *ExecuteSQLParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ExecuteSQLParams) UnmarshalJSON(data []byte) error + func (v ExecuteSQLParams) MarshalEasyJSON(w *jwriter.Writer) + func (v ExecuteSQLParams) MarshalJSON() ([]byte, error) + type ExecuteSQLReturns struct + ColumnNames []string + SQLError *Error + Values []easyjson.RawMessage + func (v *ExecuteSQLReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *ExecuteSQLReturns) UnmarshalJSON(data []byte) error + func (v ExecuteSQLReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v ExecuteSQLReturns) MarshalJSON() ([]byte, error) + type GetDatabaseTableNamesParams struct + DatabaseID ID + func GetDatabaseTableNames(databaseID ID) *GetDatabaseTableNamesParams + func (p *GetDatabaseTableNamesParams) Do(ctx context.Context) (tableNames []string, err error) + func (v *GetDatabaseTableNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetDatabaseTableNamesParams) UnmarshalJSON(data []byte) error + func (v GetDatabaseTableNamesParams) MarshalEasyJSON(w *jwriter.Writer) + func (v GetDatabaseTableNamesParams) MarshalJSON() ([]byte, error) + type GetDatabaseTableNamesReturns struct + TableNames []string + func (v *GetDatabaseTableNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer) + func (v *GetDatabaseTableNamesReturns) UnmarshalJSON(data []byte) error + func (v GetDatabaseTableNamesReturns) MarshalEasyJSON(w *jwriter.Writer) + func (v GetDatabaseTableNamesReturns) MarshalJSON() ([]byte, error) + type ID string + func (t ID) String() string