public final class SQLCheckEngine extends Object
| 构造器和说明 |
|---|
SQLCheckEngine() |
| 限定符和类型 | 方法和说明 |
|---|---|
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> parameters,
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> parameters,
Collection<ShardingSphereRule> rules,
String currentDatabase,
Map<String,ShardingSphereDatabase> databases,
Grantee grantee)
sqlStatementContext - SQL statement contextparameters - 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 © 2022 The Apache Software Foundation. All rights reserved.