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.sql.parser.sql.common.statement.SQLStatement sqlStatement,
List<Object> parameters,
Collection<ShardingSphereRule> rules,
String currentSchema,
Map<String,ShardingSphereMetaData> metaDataMap,
Grantee grantee)
Check SQL.
|
static boolean |
check(String schemaName,
Collection<ShardingSphereRule> rules,
Grantee grantee)
Check schema.
|
public static boolean check(String schemaName, Collection<ShardingSphereRule> rules, Grantee grantee)
schemaName - schema namerules - rulesgrantee - granteepublic static void check(org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement,
List<Object> parameters,
Collection<ShardingSphereRule> rules,
String currentSchema,
Map<String,ShardingSphereMetaData> metaDataMap,
Grantee grantee)
sqlStatement - SQL statementparameters - SQL parametersrules - rulescurrentSchema - current schemametaDataMap - meta data mapgrantee - 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.