Keyword class

A Clause that renders SQL text like keywords and operators (SELECT, SET, ...).

Use it directly for simple dialect verb modifiers instead of writing a Clause subclass:

builder.withClause(
  InsertSlot.verb + 500,
  (_) => const Keyword('OR IGNORE'),
  InsertValuesBuilder.new,
)
Inheritance

Constructors

Keyword(String text)
Creates a literal-text clause that renders text.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The SQL text.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(RenderContext context) String
Renders this clause to SQL text, recording any bind values on context.
override
toString() String
A string representation of this object.
inherited

Operators

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