Insert class

An INSERT query builder.

Inheritance

Constructors

Insert(QueryBuilderOptions options, {List<String?>? returningFields, Future<List<List>> execFunc()?, Future<Map<String, Map<String?, dynamic>>?> firstAsMapFuncWithMeta()?, Future<List<Map<String, Map<String?, dynamic>>>> getAsMapFuncWithMeta()?, Future<List?> firstFunc()?, Future<Map<String, dynamic>?> firstAsMapFunc()?, Future<List<Map<String, dynamic>>> getAsMapFunc()?, Future putSingleFunc<T>(T entity)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
mBlocks List<Block>?
getter/setter pairinherited
mOptions QueryBuilderOptions
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildReturningFields() List<String?>
inherited
buildSubstitutionValues() Map<String, dynamic>
inherited
count() Future<int>
inherited
deleteSingle<T>(T entity, [QueryBuilder? queryBuilder]) Future
inherited
distinct() QueryBuilder
inherited
exec() Future<List<List>>
inherited
fetchAll<T>([T factory(Map<String, dynamic>)?]) Future<List<T>>
inherited
fetchSingle<T>([T factory(Map<String?, dynamic>)?]) Future<T?>
inherited
field(String field, {String? alias}) QueryBuilder
inherited
fieldRaw(String setFieldRawSql) QueryBuilder
inherited
fields(Iterable<String> fields) QueryBuilder
inherited
fieldSubQuery(QueryBuilder field, {String? alias}) QueryBuilder
inherited
first() Future<List?>
inherited
firstAsMap() Future<Map<String, dynamic>?>
inherited
firstAsMapWithMeta() Future<Map<String, Map<String?, dynamic>>?>
Return row as maps containing table and column names
inherited
from(String? table, {String? alias}) QueryBuilder
inherited
fromQuery(Iterable<String> fields, QueryBuilder query) QueryBuilder
override
fromRaw(String fromRawSqlString) QueryBuilder
inherited
fromSubQuery(QueryBuilder table, {String? alias}) QueryBuilder
inherited
get() Future<List<List?>?>
inherited
getAsMap() Future<List<Map<String, dynamic>>>
inherited
getAsMapWithMeta() Future<List<Map<String, Map<String?, dynamic>>>>
Return rows as maps containing table and column names
inherited
group(String field) QueryBuilder
inherited
groupRaw(String groupRawSql) QueryBuilder
inherited
groups(Iterable<String> fields) QueryBuilder
inherited
innerJoin(String joinTableName, String field1, String operator, String field2, {String? alias}) QueryBuilder
inherited
into(String table) QueryBuilder
override
isContainFromBlock() bool
inherited
isQuery() bool
inherited
join(String joinTableName, String condition, {String? alias, JoinType type = JoinType.INNER}) QueryBuilder
inherited
joinRaw(String sql) QueryBuilder
inherited
joinWithExpression(String table, Expression condition, {String? alias, JoinType type = JoinType.INNER}) QueryBuilder
inherited
joinWithQueryExpr(QueryBuilder table, Expression condition, {String? alias, JoinType type = JoinType.INNER}) QueryBuilder
inherited
joinWithSubQuery(QueryBuilder table, String condition, {String? alias, JoinType type = JoinType.INNER}) QueryBuilder
inherited
leftJoin(String joinTableName, String field1, String operator, String field2, {String? alias}) QueryBuilder
inherited
limit(int value) QueryBuilder
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offset(int value) QueryBuilder
inherited
order(String field, {SortOrder dir = SortOrder.ASC}) QueryBuilder
inherited
orWhereGroup(QueryBuilder function(QueryBuilder)) QueryBuilder
inherited
orWhereSafe(String field, String operator, dynamic value) QueryBuilder
OR Where safe way against SQL injection Example: orWhereSafe('"toAll"', '=', 'true');
inherited
putSingle<T>(T entity) Future
inherited
rightJoin(String joinTableName, String field1, String operator, String field2, {String? alias}) QueryBuilder
inherited
set(String fieldP, dynamic value) QueryBuilder
override
setAll(Map<String, dynamic>? fieldsAndValues) QueryBuilder
override
table(String table, {String? alias}) QueryBuilder
inherited
toSql({bool isFirst = false, bool isCount = false}) String
isFirst used to add or replace limit 1 offset 0 in query string
inherited
toString() String
A string representation of this object.
inherited
union(String table, UnionType unionType) QueryBuilder
inherited
unionSubQuery(QueryBuilder table, UnionType unionType) QueryBuilder
inherited
updateSingle<T>(T entity, [QueryBuilder? queryBuilder]) Future
inherited
where(String condition, [Object? param, String andOr = 'AND']) QueryBuilder
WHERE Not secure, this one is subject to SQL injection Example: where('nome ilike ?', '%isaque%')
inherited
whereExpr(Expression condition, [Object? param, String andOr = 'AND']) QueryBuilder
inherited
whereGroup(QueryBuilder function(QueryBuilder)) QueryBuilder
inherited
whereRaw(String whereRawSql, {String andOr = 'AND', Map<String, dynamic>? substitutionValues}) QueryBuilder
Example PostgreSQL: whereRaw('b.info ilike @info', andOr: 'AND', substitutionValues: {'info': "%Sant'Ana%"}) Example MySQL: whereRaw('b.info ilike ?', andOr: 'AND', substitutionValues: {'info': "%Sant'Ana%"}) Example: whereRaw( 'LOWER(${db.putInQuotes(sField.field)}::text) like ${db.formatSubititutioValue(sField.field)}', andOr: 'OR', substitutionValues: { 'nome': '%${filtros.searchString}%', });
inherited
whereSafe(String field, String operator, dynamic value) QueryBuilder
AND Where safe way against SQL injection Example: whereSafe('"toAll"', '=', 'true');
inherited

Operators

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