mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-03 10:13:42 +00:00
Add Realm.schemaVersion API doc
This may need to be adjusted depending on the decisions surrounding this API.
This commit is contained in:
parent
5de63ac401
commit
95ac0594df
@ -103,6 +103,14 @@ class Realm {
|
|||||||
write(callback) {}
|
write(callback) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current schema version of the Realm at the given path.
|
||||||
|
* @param {string} path - The path to the file where the
|
||||||
|
* Realm database is stored.
|
||||||
|
* @returns {number} version of the schema, or `-1` if no Realm exists at `path`.
|
||||||
|
*/
|
||||||
|
Realm.schemaVersion = function(path) {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default path where to create and access the Realm file.
|
* The default path where to create and access the Realm file.
|
||||||
* @type {string}
|
* @type {string}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user