DefineTableRequest class final

define_table: creates schema, or adds and removes indexes of an existing table (new indexes are built over its rows). Answers whether anything changed.

Inheritance

Constructors

DefineTableRequest(TableSchema schema)
Defines schema.
const

Properties

fields → Map<String, Object?>
The fields of the request besides v and op.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
op → String
The op of the request.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → TableSchema
The definition.
final

Methods

decodeOutput(Object? payload) → Result<bool, DbError>
The output encoded in an ok payload of this request.
override
encodeOutput(bool output) → Map<String, Object?>
The ok payload of output, for engines written in Dart.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The protocol form: {"v": 1, "op": ..., ...fields}.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited