File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -498,6 +498,13 @@ class Store implements Finalizable {
498498 detach: this , externalSize: 200 * 1024 );
499499 }
500500
501+ /// Returns the version and features of the platform-specific ObjectBox
502+ /// database library.
503+ ///
504+ /// The format may change in any future release, only use this for
505+ /// informational purposes.
506+ static String databaseVersion () => dartStringFromC (C .version_core_string ());
507+
501508 /// Returns if an open store (i.e. opened before and not yet closed) was found
502509 /// for the given [directoryPath] .
503510 ///
Original file line number Diff line number Diff line change 11import 'dart:ffi' as ffi;
22
33import 'package:objectbox/internal.dart' ;
4+ import 'package:objectbox/objectbox.dart' ;
45import 'package:objectbox/src/native/bindings/bindings.dart' ;
56import 'package:objectbox/src/native/bindings/helpers.dart' ;
67import 'package:objectbox/src/native/version.dart' ;
@@ -14,7 +15,8 @@ void main() {
1415 expect (atLeastDart ("999.0.0" ), false );
1516 });
1617
17- print ("Testing basics of ObjectBox using C lib V${libraryVersion ()}" );
18+ print ("Testing basics of ObjectBox using C lib V${libraryVersion ()} "
19+ "with database version ${Store .databaseVersion ()}" );
1820
1921 // Prior to Dart 2.6, the exception wasn't accessible and may have crashed.
2022 // Similarly, this occured in Fluter for Linux (desktop).
You can’t perform that action at this time.
0 commit comments