rodydavis / pocketbase_drift

Pocketbase client cached with drift (sqlite)
Apache License 2.0
42 stars 9 forks source link

PocketBase Drift

PocketBase client cached with Drift.

Getting Started

Replace a pocketbase client with a drift client.

- import 'package:pocketbase/pocketbase.dart';
+ import 'package:pocketbase_drift/pocketbase_drift.dart';

- final client = PocketBase(
+ final client = $PocketBase.database(
    'http://127.0.0.1:8090',
);

Web

For web, you need to follow the instructions for Drift to copy the sqlite wasm binary into the web/ directory.

TODO