Documentation ¶
Overview ¶
Package database provides the Chrome Debugging Protocol commands, types, and events for the Chrome Database domain.
Generated by the chromedp-gen command.
Index ¶
- Variables
- type Database
- type DisableParams
- func (p *DisableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v DisableParams) MarshalJSON() ([]byte, error)
- func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *DisableParams) UnmarshalJSON(data []byte) error
- type EnableParams
- func (p *EnableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
- func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v EnableParams) MarshalJSON() ([]byte, error)
- func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *EnableParams) UnmarshalJSON(data []byte) error
- type Error
- type EventAddDatabase
- type ExecuteSQLParams
- func (p *ExecuteSQLParams) Do(ctxt context.Context, h cdp.FrameHandler) (columnNames []string, values []easyjson.RawMessage, sqlError *Error, err error)
- func (v ExecuteSQLParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v ExecuteSQLParams) MarshalJSON() ([]byte, error)
- func (v *ExecuteSQLParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *ExecuteSQLParams) UnmarshalJSON(data []byte) error
- type ExecuteSQLReturns
- type GetDatabaseTableNamesParams
- func (p *GetDatabaseTableNamesParams) Do(ctxt context.Context, h cdp.FrameHandler) (tableNames []string, err error)
- func (v GetDatabaseTableNamesParams) MarshalEasyJSON(w *jwriter.Writer)
- func (v GetDatabaseTableNamesParams) MarshalJSON() ([]byte, error)
- func (v *GetDatabaseTableNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *GetDatabaseTableNamesParams) UnmarshalJSON(data []byte) error
- type GetDatabaseTableNamesReturns
- type ID
Constants ¶
This section is empty.
Variables ¶
var EventTypes = []cdp.MethodType{ cdp.EventDatabaseAddDatabase, }
EventTypes all event types in the domain.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { ID ID `json:"id,omitempty"` // Database ID. Domain string `json:"domain,omitempty"` // Database domain. Name string `json:"name,omitempty"` // Database name. Version string `json:"version,omitempty"` // Database version. }
Database database object.
func (Database) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Database) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Database) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Database) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type DisableParams ¶
type DisableParams struct{}
DisableParams disables database tracking, prevents database events from being sent to the client.
func Disable ¶
func Disable() *DisableParams
Disable disables database tracking, prevents database events from being sent to the client.
func (*DisableParams) Do ¶
func (p *DisableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes Database.disable.
func (DisableParams) MarshalEasyJSON ¶
func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (DisableParams) MarshalJSON ¶
func (v DisableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*DisableParams) UnmarshalEasyJSON ¶
func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DisableParams) UnmarshalJSON ¶
func (v *DisableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type EnableParams ¶
type EnableParams struct{}
EnableParams enables database tracking, database events will now be delivered to the client.
func Enable ¶
func Enable() *EnableParams
Enable enables database tracking, database events will now be delivered to the client.
func (*EnableParams) Do ¶
func (p *EnableParams) Do(ctxt context.Context, h cdp.FrameHandler) (err error)
Do executes Database.enable.
func (EnableParams) MarshalEasyJSON ¶
func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EnableParams) MarshalJSON ¶
func (v EnableParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EnableParams) UnmarshalEasyJSON ¶
func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EnableParams) UnmarshalJSON ¶
func (v *EnableParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Error ¶
type Error struct { Message string `json:"message,omitempty"` // Error message. Code int64 `json:"code,omitempty"` // Error code. }
Error database error.
func (Error) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Error) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Error) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Error) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type EventAddDatabase ¶
type EventAddDatabase struct {
Database *Database `json:"database,omitempty"`
}
EventAddDatabase [no description].
func (EventAddDatabase) MarshalEasyJSON ¶
func (v EventAddDatabase) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (EventAddDatabase) MarshalJSON ¶
func (v EventAddDatabase) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*EventAddDatabase) UnmarshalEasyJSON ¶
func (v *EventAddDatabase) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EventAddDatabase) UnmarshalJSON ¶
func (v *EventAddDatabase) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ExecuteSQLParams ¶
ExecuteSQLParams [no description].
func ExecuteSQL ¶
func ExecuteSQL(databaseID ID, query string) *ExecuteSQLParams
ExecuteSQL [no description].
parameters:
databaseID query
func (*ExecuteSQLParams) Do ¶
func (p *ExecuteSQLParams) Do(ctxt context.Context, h cdp.FrameHandler) (columnNames []string, values []easyjson.RawMessage, sqlError *Error, err error)
Do executes Database.executeSQL.
returns:
columnNames values sqlError
func (ExecuteSQLParams) MarshalEasyJSON ¶
func (v ExecuteSQLParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ExecuteSQLParams) MarshalJSON ¶
func (v ExecuteSQLParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ExecuteSQLParams) UnmarshalEasyJSON ¶
func (v *ExecuteSQLParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ExecuteSQLParams) UnmarshalJSON ¶
func (v *ExecuteSQLParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ExecuteSQLReturns ¶
type ExecuteSQLReturns struct { ColumnNames []string `json:"columnNames,omitempty"` Values []easyjson.RawMessage `json:"values,omitempty"` SQLError *Error `json:"sqlError,omitempty"` }
ExecuteSQLReturns return values.
func (ExecuteSQLReturns) MarshalEasyJSON ¶
func (v ExecuteSQLReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ExecuteSQLReturns) MarshalJSON ¶
func (v ExecuteSQLReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ExecuteSQLReturns) UnmarshalEasyJSON ¶
func (v *ExecuteSQLReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ExecuteSQLReturns) UnmarshalJSON ¶
func (v *ExecuteSQLReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetDatabaseTableNamesParams ¶
type GetDatabaseTableNamesParams struct {
DatabaseID ID `json:"databaseId"`
}
GetDatabaseTableNamesParams [no description].
func GetDatabaseTableNames ¶
func GetDatabaseTableNames(databaseID ID) *GetDatabaseTableNamesParams
GetDatabaseTableNames [no description].
parameters:
databaseID
func (*GetDatabaseTableNamesParams) Do ¶
func (p *GetDatabaseTableNamesParams) Do(ctxt context.Context, h cdp.FrameHandler) (tableNames []string, err error)
Do executes Database.getDatabaseTableNames.
returns:
tableNames
func (GetDatabaseTableNamesParams) MarshalEasyJSON ¶
func (v GetDatabaseTableNamesParams) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDatabaseTableNamesParams) MarshalJSON ¶
func (v GetDatabaseTableNamesParams) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDatabaseTableNamesParams) UnmarshalEasyJSON ¶
func (v *GetDatabaseTableNamesParams) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDatabaseTableNamesParams) UnmarshalJSON ¶
func (v *GetDatabaseTableNamesParams) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type GetDatabaseTableNamesReturns ¶
type GetDatabaseTableNamesReturns struct {
TableNames []string `json:"tableNames,omitempty"`
}
GetDatabaseTableNamesReturns return values.
func (GetDatabaseTableNamesReturns) MarshalEasyJSON ¶
func (v GetDatabaseTableNamesReturns) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (GetDatabaseTableNamesReturns) MarshalJSON ¶
func (v GetDatabaseTableNamesReturns) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*GetDatabaseTableNamesReturns) UnmarshalEasyJSON ¶
func (v *GetDatabaseTableNamesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*GetDatabaseTableNamesReturns) UnmarshalJSON ¶
func (v *GetDatabaseTableNamesReturns) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface