owl_sql 0.7.2

  • Readme
  • Changelog
  • Installing
  • 49

Owl SQL code generator #

Source code generator for SQL CRUD (Postgresql).

Usage #

Changelog #

0.7.2 #

  • Supports column-level UNIQUE constraints.

0.7.1 #

  • Updated code to latest Dart SDK and pedantic lints.
  • More support for CockroachDB (e.g. column families, ordered keys).

0.7.0 #

Breaking changes:

  • Dart 2.2 compatible code (incl. using the optional new initialization).
  • ${table.type}ConnectionFn removed
  • Table.paginate uses PostgreSQLExecutionContext (e.g. Connection or a pooling proxy).


  • Import package with prefixes.
  • Additional mutable (non-database) fields for Row objects.

0.6.3 #

  • Support limit with *Table.updateAll.

0.6.2 #

  • Support limit with *Table.deleteAll.

0.6.1 #

  • Support for SMALLINT column.

0.6.0 #

  • Complete rewrite of the SQL parts from owl/owl_codegen (0.4)

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  owl_sql: ^0.7.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:owl_sql/owl_sql.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 30, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and owl_sql.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
Dev dependencies
meta ^1.0.0
page ^1.0.0
pedantic ^1.0.0
postgres ^1.0.0
test ^1.0.0