Skip to content

Commit b262d50

Browse files
committed
chore: added the missing file
1 parent b3fc90a commit b262d50

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/src/surreal_wasm.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import 'package:surrealdb_js/surrealdb_js.dart';
2+
import 'package:surrealdb_wasm/surrealdb_wasm.dart';
3+
4+
/// Simplify the instantiation of the [Surreal] class with the [WasmEngine].
5+
class SurrealWasm {
6+
/// Returns a new instance of the [Surreal] class with the [WasmEngine].
7+
static Surreal getInstance() {
8+
return Surreal({'engines': WasmEngine()});
9+
}
10+
}

0 commit comments

Comments
 (0)