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 ef18c90 commit 7ddc88fCopy full SHA for 7ddc88f
lib/src/surreal_extension.dart
@@ -0,0 +1,10 @@
1
+import 'package:surrealdb_js/surrealdb_js.dart';
2
+import 'package:surrealdb_wasm/surrealdb_wasm.dart';
3
+
4
+/// Wasm extension of the [Surreal] class
5
+extension SurrealWasm on Surreal {
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