mirror of
https://github.com/xHyroM/lighteco.git
synced 2024-11-10 01:18:07 +01:00
feat: load whole user sql statement
This commit is contained in:
parent
c4c6671c7c
commit
2a5a7133bb
1 changed files with 17 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue