Database Methods: Version
Getting the current version of the database.
🪶 This method returns some information such as, total estimated memory used (estimatedSize),
all databases and all existing models.1 import MerlinDB from "@chrisaxxwell/merlin-db";2 //Or if you are using 'merlindb.min.js' just call 'new MerlinDB()'; 3 4 const merlin = new MerlinDB( ) ;5 merlin.connect( "CATS-DATABASE") ; 6 7 merlin.version( ) .then( e => { 8 console.log( e) ; 9 //returns 1 or the current version of your database; 10 } )