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

📄 mserver.mal

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MAL
字号:
#line 38 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/mserver.mx"module mserver;command listen():intaddress SERVERlisten_defaultcomment "Start a Mapi server with the default settings.";command listen(port:int):intaddress SERVERlisten_portcomment "Start a Mapi server on the given port";command listen(port:int, maxusers:int):intaddress SERVERlisten2comment "Start a Mapi server";command listen(port:int, maxusers:int, cmd:str):intaddress SERVERlisten3comment "Start the Mapi listener on <port> for <maxusers>. 	For a new client connection MAL procedure <cmd>(Stream s_in, Stream s_out)	is called.If no <cmd> is specified a new client thread is forked.";command listen_ssl(port:int, maxusers:int,	keyfile:str,certfile:str, cmd:str):intaddress SERVERlistenSSLcomment "Start the Mapi listener on <port> for <maxusers> using SSL. 	<keyfile> and <certfile> give the path names for files with the 	server key and certificates in PEM format. For a new client connection 	MAL procedure <cmd>(Stream s_in, Stream s_out) is called.	If no <cmd> is specified a new client thread is forked.";command stop():voidaddress SERVERstopcomment "Terminate connection listeners"; command suspend():voidaddress SERVERsuspendcomment "Suspend accepting connections";command resume():voidaddress SERVERresumecomment "Resume connection listeners";command malclient(in:streams, out:streams):voidaddress SERVERclientcomment "Start a Mapi client.";command trace(mid:int,flag:int):voidaddress SERVERtracecomment "Toggle the Mapi library tracer";command reconnect(host:str, port:int, usr:str, passwd:str,lang:str):intaddress SERVERreconnectWithoutAliascomment "Re-establish connection with a remote mserver";command reconnect(host:str, port:int, db_alias:str, usr:str, passwd:str,lang:str):intaddress SERVERreconnectAliascomment "Re-establish connection with a remote mserver";command reconnect(mid:int):voidaddress SERVERreconnectcomment "Re-establish a connection";command connect(host:str, port:int, usr:str, passwd:str,lang:str):intaddress SERVERconnectcomment "Establish connection with a remote mserver";command connect_ssl(host:str, port:int, usr:str, passwd:str,lang:str):intaddress SERVERconnectsslcomment "Establish connection with a remote mserver using thesecure socket layer";command disconnect(dbalias:str):intaddress SERVERdisconnectWithAliascomment "Close connection with a remote mserver";command disconnect():intaddress SERVERdisconnectALLcomment "Close connections with all remote mserver";command setAlias(dbalias:str)address SERVERsetAliascomment "Give the channel a logical name";command lookup(dbalias:str):intaddress SERVERlookupcomment "Retrieve the connection identifier";command disconnect(mid:int):voidaddress SERVERdisconnectcomment "Terminate the session";command destroy(mid:int):voidaddress SERVERdestroycomment "Destroy the handle";command ping(mid:int):intaddress SERVERpingcomment "Test availability of server";command query(mid:int, qry:str):intaddress SERVERquerycomment "Sent the query for execution";command query_handle(mid:int, qry:str):intaddress SERVERquery_handlecomment "Sent the query for execution";pattern query_array(mid:int, qry:str, arg:str...):intaddress SERVERquery_arraycomment "Sent the query for execution replacing '?' by arguments";command prepare(mid:int, qry:str):intaddress SERVERpreparecomment "Prepare a query for execution";command finish(hdl:int):intaddress SERVERfinishcomment "Remove all remaining answers";command get_field_count(hdl:int):intaddress SERVERget_field_countcomment "Return number of fields";command get_row_count(hdl:int):intaddress SERVERget_row_countcomment "Return number of rows";command fetch_row(hdl:int):intaddress SERVERrows_affectedcomment "Return number of affected rows";command fetch_row(hdl:int):intaddress SERVERfetch_rowcomment "Retrieve the next row for analysis";command fetch_all_rows(hdl:int):intaddress SERVERfetch_all_rowscomment "Retrieve all rows into the cache";command fetch_field(hdl:int,fnr:int):straddress SERVERfetch_field_strcomment "Retrieve a single field";command fetch_field(hdl:int,fnr:int):intaddress SERVERfetch_field_intcomment "Retrieve a single int field";command fetch_field(hdl:int,fnr:int):lngaddress SERVERfetch_field_lngcomment "Retrieve a single lng field";command fetch_field(hdl:int,fnr:int):shtaddress SERVERfetch_field_shtcomment "Retrieve a single sht field";command fetch_field(hdl:int,fnr:int):voidaddress SERVERfetch_field_voidcomment "Retrieve a single void field";command fetch_field(hdl:int,fnr:int):oidaddress SERVERfetch_field_oidcomment "Retrieve a single void field";command fetch_field(hdl:int,fnr:int):chraddress SERVERfetch_field_chrcomment "Retrieve a single chr field";command fetch_field_array(hdl:int):bat[:int,:str]address SERVERfetch_field_batcomment "Retrieve all fields for a row";command fetch_line(hdl:int):straddress SERVERfetch_linecomment "Retrieve a complete line";command fetch_reset(hdl:int):intaddress SERVERfetch_resetcomment "Reset the cache read line.";command next_result(hdl:int):intaddress SERVERnext_resultcomment "Go to next result set";command error(mid:int):intaddress SERVERerrorcomment "Check for an error in the communication";command getError(mid:int):straddress SERVERgetErrorcomment "Get error message";command explain(mid:int):straddress SERVERexplaincomment "Turn the error seen into a string";pattern put(mid:int, nme:str, val:any_1):voidaddress SERVERputcomment "Send a value to a remote site";pattern put(nme:str, val:any_1):straddress SERVERputLocalcomment "Prepare sending a value to a remote site";pattern rpc(key:int,qry:str...):anyaddress SERVERmapi_rpc_single_rowcomment "Sent a simple query for execution and fetch result";pattern rpc(key:int,qry:str):bat[:any_1,:any_2]address SERVERmapi_rpc_bat;command rpc(key:int,qry:str):voidaddress SERVERquerycomment "Sent a simple query for execution";pattern bind(key:int,rschema:str,rtable:str,rcolumn:str,i:int):bat[:any_1,:any_2]address SERVERbindBATcomment "Bind a remote variable to a local one";pattern bind(key:int,rschema:str,rtable:str,i:int):bat[:any_1,:any_2]address SERVERbindBATcomment "Bind a remote variable to a local one";pattern bind(key:int,remoteName:str):bat[:any_1,:any_2]address SERVERbindBATcomment "Bind a remote variable to a local one";mserver.listen();

⌨️ 快捷键说明

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