2021-11-11 05:40:41 -08:00
|
|
|
An experimental postgres backend for Drift.
|
|
|
|
|
|
|
|
## Using this
|
|
|
|
|
|
|
|
For general notes on using drift, see [this guide](https://drift.simonbinder.eu/getting-started/).
|
|
|
|
|
|
|
|
To use drift_postgres, add this to your `pubspec.yaml`
|
|
|
|
```yaml
|
|
|
|
dependencies:
|
|
|
|
drift: "$latest version"
|
|
|
|
drift_postgres:
|
|
|
|
git:
|
2022-03-13 07:52:15 -07:00
|
|
|
url: https://github.com/simolus3/drift.git
|
2022-05-16 07:22:33 -07:00
|
|
|
path: extras/drift_postgres
|
2021-11-11 05:40:41 -08:00
|
|
|
```
|
|
|
|
|
|
|
|
To connect your drift database class to postgres, use a `PgDatabase` from `package:drift_postgres/postgres.dart`.
|
|
|
|
|