first commit

This commit is contained in:
2026-01-15 22:38:46 +03:00
commit a70e9b7a79
58 changed files with 3980 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package com.andrewkydev.database;
public final class DatabaseProvider {
private static volatile DatabaseApi api;
private DatabaseProvider() {
}
public static void set(DatabaseApi api) {
DatabaseProvider.api = api;
}
public static DatabaseApi get() {
DatabaseApi current = api;
if (current == null) {
throw new IllegalStateException("DatabaseApi is not initialized");
}
return current;
}
}