We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3fc90a commit b262d50Copy full SHA for b262d50
lib/src/surreal_wasm.dart
@@ -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