Document how to use a moor beta/dev version on website

This commit is contained in:
Simon Binder 2020-03-21 12:11:56 +01:00
parent 2da8577b01
commit 5d6fcec438
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
---
title: "Moor internals"
weight: 300000
description: Work in progress documentation on moor internals
---
## Using an unreleased moor version
To try out new moor features, you can choose to use a development or beta version of moor before it's
published to pub. For that, add an `dependency_overrides` section to your pubspec:
```yaml
dependency_overrides:
moor:
git:
url: https://github.com/simolus3/moor.git
ref: beta
path: moor
moor_ffi:
git:
url: https://github.com/simolus3/moor.git
ref: beta
path: moor_ffi
moor_generator:
git:
url: https://github.com/simolus3/moor.git
ref: beta
path: moor_generator
sqlparser:
git:
url: https://github.com/simolus3/moor.git
ref: beta
path: sqlparser
```
If you're using `moor_flutter`, just exchange `moor_ffi` with `moor_flutter` in the package name
and path. To use the bleeding edge of moor, change `ref: beta` to `ref: develop` for all packages.