raindrop_cli library

Classes

DdlRunner
Runs DDL generation in an isolated process by dynamically loading the appropriate driver package's DDL generator.
JournalEntry
Represents a single entry in the migration journal.
LocatedSchema
A table declaration, as a name the generated entrypoint can reference.
MigrationJournal
Represents the migration journal that tracks all applied migrations.
MigrationSnapshot
One migration's record of the schema, as stored under migrations/meta.
RaindropConfig
Configuration for the raindrop CLI tool.
SchemaDiffer
Calculates the diff between two schema snapshots.
SchemaLocator
Finds the schemas a project declares, so they can be referenced by name.
SnapshotRunner
Builds the current schema snapshot by running the project's schema.

Enums

MigrationNaming
How migration SQL filenames are prefixed (before _description).

Functions

emitDartMigrations(RaindropConfig config, MigrationJournal journal, String outputPath) Future<void>
Writes the Dart file that embeds every migration in journal, in order.
findProjectRoot(String startDir) String
Walks up from startDir to the nearest directory holding a pubspec.yaml, falling back to startDir at the filesystem root.
migrationTagPrefix({required MigrationNaming naming, required int migrationIndex, required DateTime at}) String
Builds the prefix segment of a migration tag (before _name).
sanitizeMigrationName(String name) String
Normalises a migration name into the tag's trailing segment.