Insert constructor

Insert(
  1. QueryBuilderOptions? options, {
  2. List<String?>? returningFields,
  3. Future<List<List>> execFunc()?,
  4. Future<Map<String, Map<String?, dynamic>>?> firstAsMapFuncWithMeta()?,
  5. Future<List<Map<String, Map<String?, dynamic>>>> getAsMapFuncWithMeta()?,
  6. Future<List?> firstFunc()?,
  7. Future<Map<String, dynamic>?> firstAsMapFunc()?,
  8. Future<List<Map<String, dynamic>>> getAsMapFunc()?,
  9. Future putSingleFunc<T>(
    1. T entity
    )?,
})

Implementation

Insert(
  QueryBuilderOptions? options, {
  List<String?>? returningFields,
  Future<List<List>> Function()? execFunc,
  Future<Map<String, Map<String?, dynamic>>?> Function()?
      firstAsMapFuncWithMeta,
  Future<List<Map<String, Map<String?, dynamic>>>> Function()?
      getAsMapFuncWithMeta,
  Future<List?> Function()? firstFunc,
  Future<Map<String, dynamic>?> Function()? firstAsMapFunc,
  Future<List<Map<String, dynamic>>> Function()? getAsMapFunc,
  Future Function<T>(T entity)? putSingleFunc,
}) : super(
        options,
        [
          StringBlock(options, 'INSERT', returningFields: returningFields),
          IntoTableBlock(options), // 1
          InsertFieldValueBlock(options), // 2
          InsertFieldsFromQueryBlock(options) // 3
        ],
        execFunc: execFunc,
        firstAsMapFuncWithMeta: firstAsMapFuncWithMeta,
        getAsMapFuncWithMeta: getAsMapFuncWithMeta,
        firstFunc: firstFunc,
        firstAsMapFunc: firstAsMapFunc,
        getAsMapFunc: getAsMapFunc,
        putSingleFunc: putSingleFunc,
      ) {
  ;
}