当前位置:网站首页>GBase 8c 访问权限访问函数(四)
GBase 8c 访问权限访问函数(四)
2022-07-24 00:16:00 【大壮十二】
has_language_privilege(user, language, privilege)
描述:指定用户是否有访问语言的权限。
表1 参数类型说明
参数名 | 合法入参类型 |
user | name, oid |
language | text, oid |
privilege | text |
返回类型:Boolean
has_language_privilege(language, privilege)
描述:当前用户是否有访问语言的权限。合法参数类型请参见表1。
返回类型:Boolean
备注:has_language_privilege检查用户是否能以特定方式访问一个过程语言。其参数类似has_table_privilege。访问权限类型必须是USAGE。
has_nodegroup_privilege(user, nodegroup, privilege)
描述:检查用户是否有数据库节点访问权限。
返回类型:Boolean
表2 参数类型说明
参数名 | 合法入参类型 |
user | name, oid |
nodegroup | text, oid |
privilege | text |
has_nodegroup_privilege(nodegroup, privilege)
描述:检查用户是否有数据库节点访问权限。参数与has_table_privilege类似。访问权限类型必须是USAGE、CREATE、COMPUTE、ALTER或CROP。
返回类型:Boolean
has_schema_privilege(user, schema, privilege)
描述:指定用户是否有访问模式的权限。
返回类型:Boolean
has_schema_privilege(schema, privilege)
描述:当前用户是否有访问模式的权限。
返回类型:Boolean
备注:has_schema_privilege检查用户是否能以特定方式访问一个模式。其参数类似has_table_privilege。访问权限类型必须是CREATE、USAGE、ALTER、DROP或COMMENT的一些组合。
has_server_privilege(user, server, privilege)
描述:指定用户是否有访问外部服务的权限。
返回类型:Boolean
has_server_privilege(server, privilege)
描述:当前用户是否有访问外部服务的权限。
返回类型:Boolean
备注:has_server_privilege检查用户是否能以指定方式访问一个外部服务器。其参数类似has_table_privilege。访问权限类型必须是USAGE、ALTER、DROP或COMMENT之一的值。
has_table_privilege(user, table, privilege)
描述:指定用户是否有访问表的权限。
返回类型:Boolean
边栏推荐
- 二叉搜索树的简易实现及剖析
- Multi knapsack explanation of dynamic programming knapsack problem
- kubernetes error
- 473-82(40、662、31、98、189)
- [wechat Payment]
- Joinable and detached of pthread
- 合宙ESP32C3基于Arduino IDE框架下配置分区表
- Pushgateway+prometheus+grafana build Flink real-time monitoring
- Take a nap at home today
- IIS deployment.Netcore
猜你喜欢

Summarize the plan, clarify the direction, concentrate and start a new situation -- the Counterpart Assistance Project of hexu software has achieved remarkable results

Write all the code as soon as you change the test steps? Why not try yaml to realize data-driven?

Lac automatic dialing experiment of L2TP

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

English语法_指示代词 -such / the same

Super simple training of force deduction and problem brushing

docker 拉取redis镜像 并运行

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

Inftnews | protect the "Snow Mountain Spirit", and the 42verse "digital ecological protection" public welfare project is about to start

Nacos
随机推荐
Lac automatic dialing experiment of L2TP
A lot of happiness in learning
Joinable and detached of pthread
Tencent cloud was affirmed by international professional streaming media evaluation: video coding performance is the best in all three scenarios
[hcip] OSPF experiment under mGRE environment, including multi process bidirectional republication and OSPF special area
【语音合成】TensorFlowTTS 中文文本转语音
Pytest interface automation test framework | control test case execution
Browser cannot access Minio
ESP8266————AT指令+网络透传
Pytest interface automation testing framework | multi process running case
It basic English
理解多态,让不同的“人”做同一件事情会产生不同的结果
ansible命令自动补全
腾讯将关闭“幻核”,数字藏品领域发展是否面临阻力?
STL案例-评委打分
Intel Intel realsense realistic depth camera self calibration operation steps explanation D400 series is applicable
Tool recommendation - YuQue
docker搭建sonarqube,mysql5.7环境
分布式之 CAP 原则
July 23, 2022 - mapper file description