Skip to content

Commit

Permalink
chore(): Regenerated Drift Tables
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Feb 13, 2025
1 parent 0f1de0b commit c9be628
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 8 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

130 changes: 130 additions & 0 deletions packages/common/amplify_db_common/example/lib/db.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/common/amplify_db_common_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
drift: ^2.25.0
meta: ^1.7.0
path: ">=1.8.0 <2.0.0"
sqlite3: ">=2.0.0 <2.4.7"
sqlite3: ">=2.0.0 <2.7.0"

dev_dependencies:
amplify_lints: ">=3.1.0 <3.2.0"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
// dart format width=80
// ignore_for_file: type=lint
import 'package:amplify_storage_s3_dart/src/storage_s3_service/transfer/database/tables.dart'
as i2;
import 'package:drift/drift.dart' as i0;
import 'package:amplify_storage_s3_dart/src/storage_s3_service/transfer/database/tables.drift.dart'
as i1;
import 'package:drift/drift.dart' as i0;
import 'package:amplify_storage_s3_dart/src/storage_s3_service/transfer/database/tables.dart'
as i2;

typedef $$TransferRecordsTableCreateCompanionBuilder
= i1.TransferRecordsCompanion Function({
i0.Value<int> id,
required String uploadId,
required String objectKey,
required String createdAt,
i0.Value<String?> bucketName,
i0.Value<String?> awsRegion,
});
typedef $$TransferRecordsTableUpdateCompanionBuilder
= i1.TransferRecordsCompanion Function({
i0.Value<int> id,
i0.Value<String> uploadId,
i0.Value<String> objectKey,
i0.Value<String> createdAt,
i0.Value<String?> bucketName,
i0.Value<String?> awsRegion,
});

class $$TransferRecordsTableFilterComposer
Expand All @@ -41,6 +45,12 @@ class $$TransferRecordsTableFilterComposer

i0.ColumnFilters<String> get createdAt => $composableBuilder(
column: $table.createdAt, builder: (column) => i0.ColumnFilters(column));

i0.ColumnFilters<String> get bucketName => $composableBuilder(
column: $table.bucketName, builder: (column) => i0.ColumnFilters(column));

i0.ColumnFilters<String> get awsRegion => $composableBuilder(
column: $table.awsRegion, builder: (column) => i0.ColumnFilters(column));
}

class $$TransferRecordsTableOrderingComposer
Expand All @@ -65,6 +75,14 @@ class $$TransferRecordsTableOrderingComposer
i0.ColumnOrderings<String> get createdAt => $composableBuilder(
column: $table.createdAt,
builder: (column) => i0.ColumnOrderings(column));

i0.ColumnOrderings<String> get bucketName => $composableBuilder(
column: $table.bucketName,
builder: (column) => i0.ColumnOrderings(column));

i0.ColumnOrderings<String> get awsRegion => $composableBuilder(
column: $table.awsRegion,
builder: (column) => i0.ColumnOrderings(column));
}

class $$TransferRecordsTableAnnotationComposer
Expand All @@ -87,6 +105,12 @@ class $$TransferRecordsTableAnnotationComposer

i0.GeneratedColumn<String> get createdAt =>
$composableBuilder(column: $table.createdAt, builder: (column) => column);

i0.GeneratedColumn<String> get bucketName => $composableBuilder(
column: $table.bucketName, builder: (column) => column);

i0.GeneratedColumn<String> get awsRegion =>
$composableBuilder(column: $table.awsRegion, builder: (column) => column);
}

class $$TransferRecordsTableTableManager extends i0.RootTableManager<
Expand Down Expand Up @@ -121,24 +145,32 @@ class $$TransferRecordsTableTableManager extends i0.RootTableManager<
i0.Value<String> uploadId = const i0.Value.absent(),
i0.Value<String> objectKey = const i0.Value.absent(),
i0.Value<String> createdAt = const i0.Value.absent(),
i0.Value<String?> bucketName = const i0.Value.absent(),
i0.Value<String?> awsRegion = const i0.Value.absent(),
}) =>
i1.TransferRecordsCompanion(
id: id,
uploadId: uploadId,
objectKey: objectKey,
createdAt: createdAt,
bucketName: bucketName,
awsRegion: awsRegion,
),
createCompanionCallback: ({
i0.Value<int> id = const i0.Value.absent(),
required String uploadId,
required String objectKey,
required String createdAt,
i0.Value<String?> bucketName = const i0.Value.absent(),
i0.Value<String?> awsRegion = const i0.Value.absent(),
}) =>
i1.TransferRecordsCompanion.insert(
id: id,
uploadId: uploadId,
objectKey: objectKey,
createdAt: createdAt,
bucketName: bucketName,
awsRegion: awsRegion,
),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), i0.BaseReferences(db, table, e)))
Expand Down Expand Up @@ -378,13 +410,18 @@ class TransferRecord extends i0.DataClass
uploadId: uploadId ?? this.uploadId,
objectKey: objectKey ?? this.objectKey,
createdAt: createdAt ?? this.createdAt,
bucketName: bucketName.present ? bucketName.value : this.bucketName,
awsRegion: awsRegion.present ? awsRegion.value : this.awsRegion,
);
TransferRecord copyWithCompanion(i1.TransferRecordsCompanion data) {
return TransferRecord(
id: data.id.present ? data.id.value : this.id,
uploadId: data.uploadId.present ? data.uploadId.value : this.uploadId,
objectKey: data.objectKey.present ? data.objectKey.value : this.objectKey,
createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt,
bucketName:
data.bucketName.present ? data.bucketName.value : this.bucketName,
awsRegion: data.awsRegion.present ? data.awsRegion.value : this.awsRegion,
);
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies:
oauth2: ^2.0.2
package_info_plus: ^8.0.0
pigeon: ^22.6.2
sqlite3: ">=2.0.0 <2.4.7"
sqlite3: ">=2.6.0 <2.7.0"
source_gen: ^1.3.2
stack_trace: ^1.10.0
uuid: ">=3.0.6 <5.0.0"
Expand Down

0 comments on commit c9be628

Please sign in to comment.