mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-06 01:34:21 +01:00
Fix LimboDB.load to be static method
This commit is contained in:
@@ -30,6 +30,19 @@ public final class LimboDB extends AbstractDB {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the SQLite interface backend.
|
||||
*/
|
||||
public static void load() {
|
||||
if (isLoaded) return;
|
||||
|
||||
try {
|
||||
System.loadLibrary("_limbo_java");
|
||||
} finally {
|
||||
isLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url e.g. "jdbc:sqlite:fileName
|
||||
* @param fileName e.g. path to file
|
||||
@@ -43,19 +56,6 @@ public final class LimboDB extends AbstractDB {
|
||||
super(url, fileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the SQLite interface backend.
|
||||
*/
|
||||
public void load() {
|
||||
if (isLoaded) return;
|
||||
|
||||
try {
|
||||
System.loadLibrary("_limbo_java");
|
||||
} finally {
|
||||
isLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
// WRAPPER FUNCTIONS ////////////////////////////////////////////
|
||||
|
||||
// TODO: add support for JNI
|
||||
|
||||
Reference in New Issue
Block a user