Interface for implementation of custom SQL dialects for package:typed_sql
.
Warning
This interface is NOT stable yet, while subclasses of SqlDialect
is possible outside package:typed_sql
, newer versions of this package
may add new methods (remove existing) without a major version bump!
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createTables(
List< CreateTableStatement> statements) → String -
Create an SQL DDL script from
statements
separated by;
. -
delete(
DeleteStatement statement) → (String, List< Object?> ) - Delete from DeleteStatement.table.
-
insertInto(
InsertStatement statement) → (String, List< Object?> ) - Insert InsertStatement.columns into InsertStatement.table returning columns from InsertStatement.returning.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
select(
SelectStatement statement) → (String, List< Object?> ) -
Create select statment from
statement
. -
toString(
) → String -
A string representation of this object.
inherited
-
update(
UpdateStatement statement) → (String, List< Object?> ) - Update UpdateStatement.columns from UpdateStatement.table with UpdateStatement.values.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
postgres(
) → SqlDialect - SqlDialect for talking to a PostgreSQL database.
-
sqlite(
) → SqlDialect - SqlDialect for talking to an SQLite3 database.