1
0
Fork 0
mirror of https://github.com/xHyroM/lighteco.git synced 2024-11-21 22:41:06 +01:00

feat: load whole user sql statement

This commit is contained in:
Jozef Steinhübl 2023-08-28 11:42:30 +02:00
parent c4c6671c7c
commit 2a5a7133bb

View file

@ -10,6 +10,23 @@ import java.sql.Connection;
import java.util.UUID;
public class SqlStorageProvider implements StorageProvider {
private static final String SAVE_USER_LOCAL_CURRENCY = "";
private static final String SAVE_USER_GLOBAL_CURRENCY = "";
private static final String LOAD_WHOLE_USER = """
SELECT currency_identifier, balance
FROM
(
SELECT currency_identifier, balance
FROM {prefix}_users
WHERE uuid=?
UNION ALL
SELECT currency_identifier, balance
FROM {prefix}_{context}_users
WHERE uuid=?
);
""";
private final LightEcoPlugin plugin;
private final ConnectionFactory connectionFactory;