2026-02-07 16:01:37 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
|
|
part of 'formulas_database.dart';
|
|
|
|
|
|
|
|
|
|
// ignore_for_file: type=lint
|
2026-02-09 18:11:00 +00:00
|
|
|
class $FormulaElementsTable extends FormulaElements
|
|
|
|
|
with TableInfo<$FormulaElementsTable, FormulaElement> {
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
|
|
|
|
final GeneratedDatabase attachedDatabase;
|
|
|
|
|
final String? _alias;
|
2026-02-09 18:11:00 +00:00
|
|
|
$FormulaElementsTable(this.attachedDatabase, [this._alias]);
|
2026-04-05 15:45:01 +00:00
|
|
|
static const VerificationMeta _uuidMeta = const VerificationMeta('uuid');
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
2026-04-05 15:45:01 +00:00
|
|
|
late final GeneratedColumn<String> uuid = GeneratedColumn<String>(
|
|
|
|
|
'uuid',
|
2026-02-26 19:03:19 +00:00
|
|
|
aliasedName,
|
|
|
|
|
false,
|
2026-04-05 15:45:01 +00:00
|
|
|
type: DriftSqlType.string,
|
|
|
|
|
requiredDuringInsert: true,
|
2026-02-26 19:03:19 +00:00
|
|
|
);
|
|
|
|
|
static const VerificationMeta _elementTextMeta = const VerificationMeta(
|
|
|
|
|
'elementText',
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
2026-02-09 18:11:00 +00:00
|
|
|
late final GeneratedColumn<String> elementText = GeneratedColumn<String>(
|
2026-02-26 19:03:19 +00:00
|
|
|
'element_text',
|
|
|
|
|
aliasedName,
|
|
|
|
|
false,
|
|
|
|
|
type: DriftSqlType.string,
|
|
|
|
|
requiredDuringInsert: true,
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
2026-04-05 15:45:01 +00:00
|
|
|
List<GeneratedColumn> get $columns => [uuid, elementText];
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
|
|
|
|
String get aliasedName => _alias ?? actualTableName;
|
|
|
|
|
@override
|
|
|
|
|
String get actualTableName => $name;
|
2026-02-09 18:11:00 +00:00
|
|
|
static const String $name = 'formula_elements';
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
2026-02-26 19:03:19 +00:00
|
|
|
VerificationContext validateIntegrity(
|
|
|
|
|
Insertable<FormulaElement> instance, {
|
|
|
|
|
bool isInserting = false,
|
|
|
|
|
}) {
|
2026-02-07 16:01:37 +00:00
|
|
|
final context = VerificationContext();
|
|
|
|
|
final data = instance.toColumns(true);
|
2026-04-05 15:45:01 +00:00
|
|
|
if (data.containsKey('uuid')) {
|
|
|
|
|
context.handle(
|
|
|
|
|
_uuidMeta,
|
|
|
|
|
uuid.isAcceptableOrUnknown(data['uuid']!, _uuidMeta),
|
|
|
|
|
);
|
|
|
|
|
} else if (isInserting) {
|
|
|
|
|
context.missing(_uuidMeta);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
2026-02-09 18:11:00 +00:00
|
|
|
if (data.containsKey('element_text')) {
|
2026-02-07 16:01:37 +00:00
|
|
|
context.handle(
|
2026-02-26 19:03:19 +00:00
|
|
|
_elementTextMeta,
|
|
|
|
|
elementText.isAcceptableOrUnknown(
|
|
|
|
|
data['element_text']!,
|
2026-02-09 18:11:00 +00:00
|
|
|
_elementTextMeta,
|
2026-02-26 19:03:19 +00:00
|
|
|
),
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
} else if (isInserting) {
|
2026-02-09 18:11:00 +00:00
|
|
|
context.missing(_elementTextMeta);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
return context;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
2026-04-05 15:45:01 +00:00
|
|
|
Set<GeneratedColumn> get $primaryKey => {uuid};
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
2026-02-09 18:11:00 +00:00
|
|
|
FormulaElement map(Map<String, dynamic> data, {String? tablePrefix}) {
|
2026-02-07 16:01:37 +00:00
|
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
2026-02-09 18:11:00 +00:00
|
|
|
return FormulaElement(
|
2026-04-05 15:45:01 +00:00
|
|
|
uuid: attachedDatabase.typeMapping.read(
|
|
|
|
|
DriftSqlType.string,
|
|
|
|
|
data['${effectivePrefix}uuid'],
|
2026-02-26 19:03:19 +00:00
|
|
|
)!,
|
|
|
|
|
elementText: attachedDatabase.typeMapping.read(
|
|
|
|
|
DriftSqlType.string,
|
|
|
|
|
data['${effectivePrefix}element_text'],
|
|
|
|
|
)!,
|
2026-02-07 16:01:37 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
2026-02-09 18:11:00 +00:00
|
|
|
$FormulaElementsTable createAlias(String alias) {
|
|
|
|
|
return $FormulaElementsTable(attachedDatabase, alias);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
class FormulaElement extends DataClass implements Insertable<FormulaElement> {
|
2026-04-05 15:45:01 +00:00
|
|
|
final String uuid;
|
2026-02-09 18:11:00 +00:00
|
|
|
final String elementText;
|
2026-04-05 15:45:01 +00:00
|
|
|
const FormulaElement({required this.uuid, required this.elementText});
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
|
|
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
|
|
|
final map = <String, Expression>{};
|
2026-04-05 15:45:01 +00:00
|
|
|
map['uuid'] = Variable<String>(uuid);
|
2026-02-09 18:11:00 +00:00
|
|
|
map['element_text'] = Variable<String>(elementText);
|
2026-02-07 16:01:37 +00:00
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
FormulaElementsCompanion toCompanion(bool nullToAbsent) {
|
|
|
|
|
return FormulaElementsCompanion(
|
2026-04-05 15:45:01 +00:00
|
|
|
uuid: Value(uuid),
|
2026-02-09 18:11:00 +00:00
|
|
|
elementText: Value(elementText),
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-26 19:03:19 +00:00
|
|
|
factory FormulaElement.fromJson(
|
|
|
|
|
Map<String, dynamic> json, {
|
|
|
|
|
ValueSerializer? serializer,
|
|
|
|
|
}) {
|
2026-02-07 16:01:37 +00:00
|
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
2026-02-09 18:11:00 +00:00
|
|
|
return FormulaElement(
|
2026-04-05 15:45:01 +00:00
|
|
|
uuid: serializer.fromJson<String>(json['uuid']),
|
2026-02-09 18:11:00 +00:00
|
|
|
elementText: serializer.fromJson<String>(json['elementText']),
|
2026-02-07 16:01:37 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
@override
|
|
|
|
|
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
|
|
|
|
|
serializer ??= driftRuntimeOptions.defaultSerializer;
|
|
|
|
|
return <String, dynamic>{
|
2026-04-05 15:45:01 +00:00
|
|
|
'uuid': serializer.toJson<String>(uuid),
|
2026-02-09 18:11:00 +00:00
|
|
|
'elementText': serializer.toJson<String>(elementText),
|
2026-02-07 16:01:37 +00:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-05 15:45:01 +00:00
|
|
|
FormulaElement copyWith({String? uuid, String? elementText}) =>
|
|
|
|
|
FormulaElement(
|
|
|
|
|
uuid: uuid ?? this.uuid,
|
|
|
|
|
elementText: elementText ?? this.elementText,
|
|
|
|
|
);
|
2026-02-09 18:11:00 +00:00
|
|
|
FormulaElement copyWithCompanion(FormulaElementsCompanion data) {
|
|
|
|
|
return FormulaElement(
|
2026-04-05 15:45:01 +00:00
|
|
|
uuid: data.uuid.present ? data.uuid.value : this.uuid,
|
2026-02-26 19:03:19 +00:00
|
|
|
elementText: data.elementText.present
|
|
|
|
|
? data.elementText.value
|
|
|
|
|
: this.elementText,
|
2026-02-07 16:01:37 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
2026-02-09 18:11:00 +00:00
|
|
|
return (StringBuffer('FormulaElement(')
|
2026-04-05 15:45:01 +00:00
|
|
|
..write('uuid: $uuid, ')
|
2026-02-09 18:11:00 +00:00
|
|
|
..write('elementText: $elementText')
|
2026-02-07 16:01:37 +00:00
|
|
|
..write(')'))
|
|
|
|
|
.toString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
2026-04-05 15:45:01 +00:00
|
|
|
int get hashCode => Object.hash(uuid, elementText);
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
|
identical(this, other) ||
|
2026-02-09 18:11:00 +00:00
|
|
|
(other is FormulaElement &&
|
2026-04-05 15:45:01 +00:00
|
|
|
other.uuid == this.uuid &&
|
2026-02-09 18:11:00 +00:00
|
|
|
other.elementText == this.elementText);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
class FormulaElementsCompanion extends UpdateCompanion<FormulaElement> {
|
2026-04-05 15:45:01 +00:00
|
|
|
final Value<String> uuid;
|
2026-02-09 18:11:00 +00:00
|
|
|
final Value<String> elementText;
|
2026-04-05 15:45:01 +00:00
|
|
|
final Value<int> rowid;
|
2026-02-09 18:11:00 +00:00
|
|
|
const FormulaElementsCompanion({
|
2026-04-05 15:45:01 +00:00
|
|
|
this.uuid = const Value.absent(),
|
2026-02-09 18:11:00 +00:00
|
|
|
this.elementText = const Value.absent(),
|
2026-04-05 15:45:01 +00:00
|
|
|
this.rowid = const Value.absent(),
|
2026-02-07 16:01:37 +00:00
|
|
|
});
|
2026-02-09 18:11:00 +00:00
|
|
|
FormulaElementsCompanion.insert({
|
2026-04-05 15:45:01 +00:00
|
|
|
required String uuid,
|
2026-02-09 18:11:00 +00:00
|
|
|
required String elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
this.rowid = const Value.absent(),
|
|
|
|
|
}) : uuid = Value(uuid),
|
|
|
|
|
elementText = Value(elementText);
|
2026-02-09 18:11:00 +00:00
|
|
|
static Insertable<FormulaElement> custom({
|
2026-04-05 15:45:01 +00:00
|
|
|
Expression<String>? uuid,
|
2026-02-09 18:11:00 +00:00
|
|
|
Expression<String>? elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
Expression<int>? rowid,
|
2026-02-07 16:01:37 +00:00
|
|
|
}) {
|
|
|
|
|
return RawValuesInsertable({
|
2026-04-05 15:45:01 +00:00
|
|
|
if (uuid != null) 'uuid': uuid,
|
2026-02-09 18:11:00 +00:00
|
|
|
if (elementText != null) 'element_text': elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
if (rowid != null) 'rowid': rowid,
|
2026-02-07 16:01:37 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-26 19:03:19 +00:00
|
|
|
FormulaElementsCompanion copyWith({
|
2026-04-05 15:45:01 +00:00
|
|
|
Value<String>? uuid,
|
2026-02-26 19:03:19 +00:00
|
|
|
Value<String>? elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
Value<int>? rowid,
|
2026-02-26 19:03:19 +00:00
|
|
|
}) {
|
2026-02-09 18:11:00 +00:00
|
|
|
return FormulaElementsCompanion(
|
2026-04-05 15:45:01 +00:00
|
|
|
uuid: uuid ?? this.uuid,
|
2026-02-09 18:11:00 +00:00
|
|
|
elementText: elementText ?? this.elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
rowid: rowid ?? this.rowid,
|
2026-02-07 16:01:37 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Map<String, Expression> toColumns(bool nullToAbsent) {
|
|
|
|
|
final map = <String, Expression>{};
|
2026-04-05 15:45:01 +00:00
|
|
|
if (uuid.present) {
|
|
|
|
|
map['uuid'] = Variable<String>(uuid.value);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
2026-02-09 18:11:00 +00:00
|
|
|
if (elementText.present) {
|
|
|
|
|
map['element_text'] = Variable<String>(elementText.value);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
2026-04-05 15:45:01 +00:00
|
|
|
if (rowid.present) {
|
|
|
|
|
map['rowid'] = Variable<int>(rowid.value);
|
|
|
|
|
}
|
2026-02-07 16:01:37 +00:00
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
2026-02-09 18:11:00 +00:00
|
|
|
return (StringBuffer('FormulaElementsCompanion(')
|
2026-04-05 15:45:01 +00:00
|
|
|
..write('uuid: $uuid, ')
|
|
|
|
|
..write('elementText: $elementText, ')
|
|
|
|
|
..write('rowid: $rowid')
|
2026-02-07 16:01:37 +00:00
|
|
|
..write(')'))
|
|
|
|
|
.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
abstract class _$FormulasDatabase extends GeneratedDatabase {
|
|
|
|
|
_$FormulasDatabase(QueryExecutor e) : super(e);
|
|
|
|
|
$FormulasDatabaseManager get managers => $FormulasDatabaseManager(this);
|
2026-02-26 19:03:19 +00:00
|
|
|
late final $FormulaElementsTable formulaElements = $FormulaElementsTable(
|
|
|
|
|
this,
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
@override
|
|
|
|
|
Iterable<TableInfo<Table, Object?>> get allTables =>
|
|
|
|
|
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
|
|
|
|
|
@override
|
2026-02-09 18:11:00 +00:00
|
|
|
List<DatabaseSchemaEntity> get allSchemaEntities => [formulaElements];
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-26 19:03:19 +00:00
|
|
|
typedef $$FormulaElementsTableCreateCompanionBuilder =
|
|
|
|
|
FormulaElementsCompanion Function({
|
2026-04-05 15:45:01 +00:00
|
|
|
required String uuid,
|
2026-02-26 19:03:19 +00:00
|
|
|
required String elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
Value<int> rowid,
|
2026-02-26 19:03:19 +00:00
|
|
|
});
|
|
|
|
|
typedef $$FormulaElementsTableUpdateCompanionBuilder =
|
|
|
|
|
FormulaElementsCompanion Function({
|
2026-04-05 15:45:01 +00:00
|
|
|
Value<String> uuid,
|
2026-02-26 19:03:19 +00:00
|
|
|
Value<String> elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
Value<int> rowid,
|
2026-02-26 19:03:19 +00:00
|
|
|
});
|
2026-02-07 16:01:37 +00:00
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
class $$FormulaElementsTableFilterComposer
|
|
|
|
|
extends Composer<_$FormulasDatabase, $FormulaElementsTable> {
|
|
|
|
|
$$FormulaElementsTableFilterComposer({
|
2026-02-07 16:01:37 +00:00
|
|
|
required super.$db,
|
|
|
|
|
required super.$table,
|
|
|
|
|
super.joinBuilder,
|
|
|
|
|
super.$addJoinBuilderToRootComposer,
|
|
|
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
|
|
|
});
|
2026-04-05 15:45:01 +00:00
|
|
|
ColumnFilters<String> get uuid => $composableBuilder(
|
|
|
|
|
column: $table.uuid,
|
2026-02-26 19:03:19 +00:00
|
|
|
builder: (column) => ColumnFilters(column),
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
ColumnFilters<String> get elementText => $composableBuilder(
|
2026-02-26 19:03:19 +00:00
|
|
|
column: $table.elementText,
|
|
|
|
|
builder: (column) => ColumnFilters(column),
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
class $$FormulaElementsTableOrderingComposer
|
|
|
|
|
extends Composer<_$FormulasDatabase, $FormulaElementsTable> {
|
|
|
|
|
$$FormulaElementsTableOrderingComposer({
|
2026-02-07 16:01:37 +00:00
|
|
|
required super.$db,
|
|
|
|
|
required super.$table,
|
|
|
|
|
super.joinBuilder,
|
|
|
|
|
super.$addJoinBuilderToRootComposer,
|
|
|
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
|
|
|
});
|
2026-04-05 15:45:01 +00:00
|
|
|
ColumnOrderings<String> get uuid => $composableBuilder(
|
|
|
|
|
column: $table.uuid,
|
2026-02-26 19:03:19 +00:00
|
|
|
builder: (column) => ColumnOrderings(column),
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
ColumnOrderings<String> get elementText => $composableBuilder(
|
2026-02-26 19:03:19 +00:00
|
|
|
column: $table.elementText,
|
|
|
|
|
builder: (column) => ColumnOrderings(column),
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
class $$FormulaElementsTableAnnotationComposer
|
|
|
|
|
extends Composer<_$FormulasDatabase, $FormulaElementsTable> {
|
|
|
|
|
$$FormulaElementsTableAnnotationComposer({
|
2026-02-07 16:01:37 +00:00
|
|
|
required super.$db,
|
|
|
|
|
required super.$table,
|
|
|
|
|
super.joinBuilder,
|
|
|
|
|
super.$addJoinBuilderToRootComposer,
|
|
|
|
|
super.$removeJoinBuilderFromRootComposer,
|
|
|
|
|
});
|
2026-04-05 15:45:01 +00:00
|
|
|
GeneratedColumn<String> get uuid =>
|
|
|
|
|
$composableBuilder(column: $table.uuid, builder: (column) => column);
|
2026-02-07 16:01:37 +00:00
|
|
|
|
2026-02-09 18:11:00 +00:00
|
|
|
GeneratedColumn<String> get elementText => $composableBuilder(
|
2026-02-26 19:03:19 +00:00
|
|
|
column: $table.elementText,
|
|
|
|
|
builder: (column) => column,
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-26 19:03:19 +00:00
|
|
|
class $$FormulaElementsTableTableManager
|
|
|
|
|
extends
|
|
|
|
|
RootTableManager<
|
|
|
|
|
_$FormulasDatabase,
|
|
|
|
|
$FormulaElementsTable,
|
|
|
|
|
FormulaElement,
|
|
|
|
|
$$FormulaElementsTableFilterComposer,
|
|
|
|
|
$$FormulaElementsTableOrderingComposer,
|
|
|
|
|
$$FormulaElementsTableAnnotationComposer,
|
|
|
|
|
$$FormulaElementsTableCreateCompanionBuilder,
|
|
|
|
|
$$FormulaElementsTableUpdateCompanionBuilder,
|
|
|
|
|
(
|
|
|
|
|
FormulaElement,
|
|
|
|
|
BaseReferences<
|
|
|
|
|
_$FormulasDatabase,
|
|
|
|
|
$FormulaElementsTable,
|
|
|
|
|
FormulaElement
|
|
|
|
|
>,
|
|
|
|
|
),
|
|
|
|
|
FormulaElement,
|
|
|
|
|
PrefetchHooks Function()
|
|
|
|
|
> {
|
2026-02-09 18:11:00 +00:00
|
|
|
$$FormulaElementsTableTableManager(
|
2026-02-26 19:03:19 +00:00
|
|
|
_$FormulasDatabase db,
|
|
|
|
|
$FormulaElementsTable table,
|
|
|
|
|
) : super(
|
|
|
|
|
TableManagerState(
|
2026-02-07 16:01:37 +00:00
|
|
|
db: db,
|
|
|
|
|
table: table,
|
|
|
|
|
createFilteringComposer: () =>
|
2026-02-09 18:11:00 +00:00
|
|
|
$$FormulaElementsTableFilterComposer($db: db, $table: table),
|
2026-02-07 16:01:37 +00:00
|
|
|
createOrderingComposer: () =>
|
2026-02-09 18:11:00 +00:00
|
|
|
$$FormulaElementsTableOrderingComposer($db: db, $table: table),
|
2026-02-07 16:01:37 +00:00
|
|
|
createComputedFieldComposer: () =>
|
2026-02-09 18:11:00 +00:00
|
|
|
$$FormulaElementsTableAnnotationComposer($db: db, $table: table),
|
2026-02-26 19:03:19 +00:00
|
|
|
updateCompanionCallback:
|
|
|
|
|
({
|
2026-04-05 15:45:01 +00:00
|
|
|
Value<String> uuid = const Value.absent(),
|
2026-02-26 19:03:19 +00:00
|
|
|
Value<String> elementText = const Value.absent(),
|
2026-04-05 15:45:01 +00:00
|
|
|
Value<int> rowid = const Value.absent(),
|
|
|
|
|
}) => FormulaElementsCompanion(
|
|
|
|
|
uuid: uuid,
|
|
|
|
|
elementText: elementText,
|
|
|
|
|
rowid: rowid,
|
|
|
|
|
),
|
2026-02-26 19:03:19 +00:00
|
|
|
createCompanionCallback:
|
|
|
|
|
({
|
2026-04-05 15:45:01 +00:00
|
|
|
required String uuid,
|
2026-02-26 19:03:19 +00:00
|
|
|
required String elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
Value<int> rowid = const Value.absent(),
|
2026-02-26 19:03:19 +00:00
|
|
|
}) => FormulaElementsCompanion.insert(
|
2026-04-05 15:45:01 +00:00
|
|
|
uuid: uuid,
|
2026-02-26 19:03:19 +00:00
|
|
|
elementText: elementText,
|
2026-04-05 15:45:01 +00:00
|
|
|
rowid: rowid,
|
2026-02-26 19:03:19 +00:00
|
|
|
),
|
2026-02-07 16:01:37 +00:00
|
|
|
withReferenceMapper: (p0) => p0
|
|
|
|
|
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
|
|
|
|
.toList(),
|
|
|
|
|
prefetchHooksCallback: null,
|
2026-02-26 19:03:19 +00:00
|
|
|
),
|
|
|
|
|
);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-26 19:03:19 +00:00
|
|
|
typedef $$FormulaElementsTableProcessedTableManager =
|
|
|
|
|
ProcessedTableManager<
|
|
|
|
|
_$FormulasDatabase,
|
|
|
|
|
$FormulaElementsTable,
|
2026-02-09 18:11:00 +00:00
|
|
|
FormulaElement,
|
2026-02-26 19:03:19 +00:00
|
|
|
$$FormulaElementsTableFilterComposer,
|
|
|
|
|
$$FormulaElementsTableOrderingComposer,
|
|
|
|
|
$$FormulaElementsTableAnnotationComposer,
|
|
|
|
|
$$FormulaElementsTableCreateCompanionBuilder,
|
|
|
|
|
$$FormulaElementsTableUpdateCompanionBuilder,
|
|
|
|
|
(
|
|
|
|
|
FormulaElement,
|
|
|
|
|
BaseReferences<
|
|
|
|
|
_$FormulasDatabase,
|
|
|
|
|
$FormulaElementsTable,
|
|
|
|
|
FormulaElement
|
|
|
|
|
>,
|
|
|
|
|
),
|
|
|
|
|
FormulaElement,
|
|
|
|
|
PrefetchHooks Function()
|
|
|
|
|
>;
|
2026-02-07 16:01:37 +00:00
|
|
|
|
|
|
|
|
class $FormulasDatabaseManager {
|
|
|
|
|
final _$FormulasDatabase _db;
|
|
|
|
|
$FormulasDatabaseManager(this._db);
|
2026-02-09 18:11:00 +00:00
|
|
|
$$FormulaElementsTableTableManager get formulaElements =>
|
|
|
|
|
$$FormulaElementsTableTableManager(_db, _db.formulaElements);
|
2026-02-07 16:01:37 +00:00
|
|
|
}
|