ormed_sqlite_core 0.1.0 copy "ormed_sqlite_core: ^0.1.0" to clipboard
ormed_sqlite_core: ^0.1.0 copied to clipboard

Shared SQLite grammar, schema dialect, type mapping, and codecs for Ormed runtime adapters.

example/main.dart

import 'package:ormed/migrations.dart';
import 'package:ormed_sqlite_core/ormed_sqlite_core.dart';

void main() {
  final builder = SchemaBuilder()
    ..create('documents', (table) {
      table.increments('id');
      table.string('title');
      table.numeric('score', precision: 10, scale: 2);
      table.blob('payload').nullable();
      table.timestamps();
    });

  final compiler = SchemaPlanCompiler(const SqliteSchemaDialect());
  final preview = compiler.compile(builder.build());
  for (final statement in preview.statements) {
    print(statement.sql);
  }
}
0
likes
160
points
84
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Shared SQLite grammar, schema dialect, type mapping, and codecs for Ormed runtime adapters.

Repository (GitHub)
View/report issues

Topics

#orm #database #sqlite #driver

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (license)

Dependencies

ormed

More

Packages that depend on ormed_sqlite_core