drift/extras/drift_postgres
westito fad654a5aa
PostgreSQL support (#1507)
Support PostgreSQL as a dialect in the main package and with an implementation provided in another package.

Co-authored-by: Simon Binder <oss@simonbinder.eu>
2021-11-11 14:40:41 +01:00
..
lib PostgreSQL support (#1507) 2021-11-11 14:40:41 +01:00
.gitignore PostgreSQL support (#1507) 2021-11-11 14:40:41 +01:00
README.md PostgreSQL support (#1507) 2021-11-11 14:40:41 +01:00
pubspec.yaml PostgreSQL support (#1507) 2021-11-11 14:40:41 +01:00

README.md

An experimental postgres backend for Drift.

Using this

For general notes on using drift, see this guide.

To use drift_postgres, add this to your pubspec.yaml

dependencies:
  drift: "$latest version"
  drift_postgres:
   git:
    url: https://github.com/simolus3/moor.git
    path: extras/dirft_postgres

To connect your drift database class to postgres, use a PgDatabase from package:drift_postgres/postgres.dart.