Skip to content

Commit 7ddc88f

Browse files
committed
chore: added missing file
1 parent ef18c90 commit 7ddc88f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/src/surreal_extension.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+
/// 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

Comments
 (0)