open static method

Future<SqliteCrdtTable> open(
  1. String path, {
  2. List<int>? encryptionKey,
})

Convenience for tests: constructs and inits in one step.

Implementation

static Future<SqliteCrdtTable> open(
  String path, {
  List<int>? encryptionKey,
}) async {
  final table = SqliteCrdtTable(path, encryptionKey: encryptionKey);
  await table.init();
  return table;
}