drift/extras/drift_mariadb
Simon Binder 220c7125a3
Update to lints 3.0.0
2023-11-16 21:25:21 +01:00
..
example Scaffold MariaDb integration tests 2023-07-24 21:44:43 +02:00
lib Fix a few MariaDB integration tests 2023-08-02 18:27:52 +02:00
test First support for MariaDB in compiled queries 2023-07-27 11:16:58 +02:00
.gitignore add drift_mariadb package 2023-07-24 22:05:58 +03:00
README.md Add warning to MariaDB backend readme 2023-08-03 11:45:51 +02:00
analysis_options.yaml add drift_mariadb package 2023-07-24 22:05:58 +03:00
pubspec.yaml Update to lints 3.0.0 2023-11-16 21:25:21 +01:00

README.md

An experimental mariadb backend for Drift.

Note that the backend is currently experimental and not fully functional yet.

Using this

For general notes on using drift, see this guide.

To use drift_mariadb, add this to your pubspec.yaml

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

To connect your drift database class to mariadb, use a MariaDBDatabase from package:drift_mariadb/mariadb.dart.

Testing

To test this package, first run

docker run -p 3306:3306 -e MARIADB_ROOT_PASSWORD=password -e MARIADB_DATABASE=database mariadb:latest

It can then be tested with dart test.