public final class SQLCheckEngine extends Object
| Constructor and Description |
|---|
SQLCheckEngine() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
check(Grantee user,
BiPredicate<Object,Object> validate,
Object cipher,
Collection<ShardingSphereRule> rules)
Check authentication.
|
static boolean |
check(Grantee user,
Collection<ShardingSphereRule> rules)
Check user exists.
|
static void |
check(org.apache.shardingsphere.infra.binder.statement.SQLStatementContext<?> sqlStatementContext,
List<Object> params,
Collection<ShardingSphereRule> rules,
String currentDatabase,
Map<String,ShardingSphereDatabase> databases,
Grantee grantee)
Check SQL.
|
static boolean |
check(String databaseName,
Collection<ShardingSphereRule> rules,
Grantee grantee)
Check database.
|
public static boolean check(String databaseName, Collection<ShardingSphereRule> rules, Grantee grantee)
databaseName - database namerules - rulesgrantee - granteepublic static void check(org.apache.shardingsphere.infra.binder.statement.SQLStatementContext<?> sqlStatementContext,
List<Object> params,
Collection<ShardingSphereRule> rules,
String currentDatabase,
Map<String,ShardingSphereDatabase> databases,
Grantee grantee)
sqlStatementContext - SQL statement contextparams - SQL parametersrules - rulescurrentDatabase - current databasedatabases - databasesgrantee - granteepublic static boolean check(Grantee user, Collection<ShardingSphereRule> rules)
user - userrules - rulespublic static boolean check(Grantee user, BiPredicate<Object,Object> validate, Object cipher, Collection<ShardingSphereRule> rules)
user - uservalidate - validatecipher - cipherrules - rulesCopyright © 2023 The Apache Software Foundation. All rights reserved.