db library
Classes
- DB
- Database manager for Flint Dart
- DbExecutor
- Executes database work for a QueryBuilder.
- DBTransaction
- DefaultDbExecutor
- Backwards-compatible executor used when no transaction is supplied.
- FlintDatabaseApi
- FlintDatabaseApiConfig
- FlintDbAuth
- FlintDbComparison
- FlintDbError
- FlintDbFieldSchema
- FlintDbFilter
- FlintDbLogicalFilter
- FlintDbMeta
- FlintDbOrder
- FlintDbOwnerPolicy
- Restricts every operation to rows whose field matches the JWT user ID. The field is injected on insert and cannot be supplied by the client.
- FlintDbParentPolicy
- Requires field to reference a parent row owned by the same JWT identity.
- FlintDbPolicy
- FlintDbQuery
- FlintDbQueryCompiler
- FlintDbResource
- FlintDbResourceRegistry
- FlintDbResourceSchema
-
FlintDbResult<
T> - FlintDbRolePolicy
- Allows a resource only when the JWT identity contains one of roles.
- FlintMigrations
- QueryBuilder
- A simple SQL query builder for MySQL/PostgreSQL in Flint Dart.
- Seeder
- Base contract for framework-level database seeders.
- SeederRegistry
- Registry contract for application seeders.
- SeederRunner
- Runs a list of seeders sequentially and closes the database connection.
- TableRegistry
- Registry contract for application tables.
Enums
- DBDriver
- Database engines supported by Flint's database layer.
- FlintDbErrorCode
- FlintDbLogicalOperator
- FlintDbOperation
- FlintDbOperator
Extensions
- FlintDatabaseApiExtension on Flint
- FlintDbModelInstanceResourceExtension on T
- Instance form of the authenticated CRUD convention.
- FlintDbModelResourceExtension on T Function()
- Package-owned secure default for authenticated model CRUD.
Functions
-
registerSeeders(
Iterable< Seeder> seeders, {bool closeConnection = true}) → Future<void> - Consistent alias for running a seeder list.
-
registerTableRegistry(
Iterable< Table> tables, [dynamic _, SendPort? sendPort]) → void - Runs the table registry process inside a Dart isolate.
-
runSeeders(
List< Seeder> seeders, {bool closeConnection = true}) → Future<void> - Convenience helper for running framework seeders.
-
runTableRegistry(
List< Table> tables, [dynamic _, SendPort? sendPort]) → void - Backwards-compatible alias for older table registry files.
Typedefs
-
FlintDbReadFilter
= FutureOr<
FlintDbFilter?> Function(Context context) -
FlintDbRequestAuthorizer
= FutureOr<
bool> Function(Context context) -
FlintModelFactory
= Model<
Model> Function() - JsonFn = JsonMap Function()
-
JsonMap
= Map<
String, dynamic> - MapFn = JsonMap Function()