⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clients.mal

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MAL
字号:
#line 27 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"module clients;#Operations for all clientscommand setListing(flag:int):intaddress CLTsetListingcomment "Turn on/off echo of MAL instructions:	2 - show mal instruction,	4 - show details of type resolutoin, 	8 - show binding information.";command setHistory(s:str)address CLTsetHistorycomment "Designate console history file for readline.";command getId():intaddress CLTgetClientIdcomment "Return a number that uniquely represents the current client.";command getInfo( ):bat[:str,:str] address CLTInfocomment "Pseudo bat with client attributes.";command getScenario():str address CLTgetScenariocomment "Retrieve current scenario name.";command setScenario(msg:str):str address CLTsetScenariocomment "Switch to other scenario handler, return previous one.";command quit(timeout:int):voidaddress CLTquit;command quit():voidaddress CLTquitDefaultcomment "Terminate the server by (soft/hard) forcing all clients to terminate.	This command can only be initiated from the console.";command exit():voidaddress CLTexitcomment "Terminate the session for a single client using a soft error.";#Administrator operationscommand getLogins( ):bat[:int,:str] address CLTLogincomment "Pseudo bat of client login time.";command getUsers( ):bat[:int,:str] address CLTuserscomment "Pseudo bat of users logged in.";command setTrace(flag:bit):voidaddress CLTtracecomment "Trace messages from all users.";#line 365 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command addUser(nme:str, pw:str, scen:bat[:str,:any_1]):oidaddress CLTaddUsercomment "Allow user with password access to the given scenarios";#line 377 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command removeUser(nme:str):voidaddress CLTremoveUsercomment "Remove the given user from the system";#line 390 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command changeUsername(old:str, new:str):voidaddress CLTchangeUsernamecomment "Change the username of the user into the new string";#line 403 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command changePassword(old:str, new:str):voidaddress CLTchangePasswordcomment "Change the password for the current user";#line 416 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command setPassword(user:str, pass:str):voidaddress CLTsetPasswordcomment "Set the password for the given user";#line 429 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command checkPermission(usr:str, pw:str, sc:str):voidaddress CLTcheckPermissioncomment "Check permission for a user";#line 445 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command addScenario(usr:str, sc:str):voidaddress CLTaddScenariocomment "add the given scenario to the allowed scenarios for the given user";#line 458 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command removeScenario(usr:str, sc:str):voidaddress CLTremoveScenariocomment "remove the given scenario from the allowed scenarios for the given user";#line 471 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/clients.mx"command getUsers(s:bat[:str,:any_1]):bat[:oid,:str]address CLTgetUserscomment "return a BAT with user id and name available in the system with access to the given scenario(s)";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -