当前位置:网站首页>Gbase 8C access authority query function (II)
Gbase 8C access authority query function (II)
2022-07-24 00:17:00 【Dazhuang twelve】
has_column_privilege(user, table, column, privilege)
describe : Specify whether the user has access to the column .
surface 1 Parameter type description
Parameter name | Legal input type |
user | name, oid |
table | text, oid |
column | text, smallint |
privilege | text |
Return type :Boolean
has_column_privilege(table, column, privilege)
describe : Whether the current user has access to the column , Legal parameter types are shown in table 1.
Return type :Boolean
remarks :has_column_privilege Check whether the user accesses a column in a specific way . Its parameters are similar to has_table_privilege, You can add columns by column name or attribute number . The type of access you want must be SELECT、INSERT、UPDATE、COMMENT or REFERENCES Some combinations of .
Having the table level permission of the table implies having the column level permission of each column of the table .
has_cek_privilege(user, cek, privilege)
describe : Specify whether the user has access column encryption key CEK Authority . The parameters are described as follows .
surface 2 Parameter type description
Parameter name | Legal input type | describe | Value range |
user | name,oid | user | User name or id. |
cek | text,oid | Column encryption key | Column encryption key name or id. |
privilege | text | jurisdiction |
|
Return type :Boolean
has_cmk_privilege(user, cmk, privilege)
describe : Specify whether the user has access to the client encryption master key CMK Authority . The parameters are described as follows .
surface 3 Parameter type description
Parameter name | Legal input type | describe | Value range |
user | name,oid | user | User name or id. |
cmk | text,oid | Client encryption master key | Client encryption master key name or id. |
privilege | text | jurisdiction | USAGE: Allow the specified client encryption master key . DROP: Allow to delete the specified client encryption master key . |
Return type :Boolean
has_database_privilege(user, database, privilege)
describe : Specify whether the user has access to the database . The parameters are described as follows .
surface 4 Parameter type description
Parameter name | Legal input type |
user | name, oid |
database | text, oid |
privilege | text |
Return type :Boolean
has_database_privilege(database, privilege)
describe : Whether the current user has access to the database , See table for legal parameter types 4.
Return type :Boolean
remarks :has_database_privilege Check whether users can access the database in a specific way . Its parameters are similar has_table_privilege. The access permission type must be CREATE、CONNECT、TEMPORARY、ALTER、DROP、COMMENT or TEMP( Equivalent to TEMPORARY) Some combinations of .
边栏推荐
猜你喜欢

盘点为下个牛市做准备的10个新Layer1

合宙ESP32C3基于Arduino IDE框架下配置分区表

【微信小程序】拍卖商品详情页设计与交互实现(包含倒计时、实时更新出价)

Multi knapsack explanation of dynamic programming knapsack problem

Nacos
C语言详解系列——函数的认识(2)如何使用函数实现交换两个整型变量的值

Sum of submatrix

Mysql database foundation

July 23, 2022 - mapper file description

【Android Kotlin】Property、Getter 和 Setter
随机推荐
The name in Qiankun subapplication package.json becomes the default path
pytorch中with torch.no_grad(): && model.eval()
Splicing of.Net distribution with outlook mail format and table
[speech synthesis] tensorflowtts Chinese text to speech
Codeforces Round #807 (Div. 2)(A-D)
Take a nap at home today
【语音合成】TensorFlowTTS 中文文本转语音
Sum of submatrix
分布式之 CAP 原则
链表——707. 设计链表
GBase 8c 访问权限查询函数(二)
mongodb的多数据源配置
The universal esp32c3 configures partition tables based on the Arduino ide framework
L2TP的LAC自动拨号实验
GBase 8c 会话信息函数(五)
jenkins下使用声明式(Declarative)和Jenkinsfile的方式构建Pipeline流水线项目
Redis cluster construction (cluster cluster mode, fragment cluster)
Automatic escape processing in JMeter
Space shooting lesson 07: add graphics
day2