xlang
v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
xlibrarys
xsql
SqlServer.xcsm
浏览该文件的文档.
1
//xlang Source, Name:SqlServer.xcsm
2
//Date: Sat Sep 21:23:09 2019
3
4
class
SqlServer
:
AdoConnector
{
5
6
public
SqlServer
(){
7
setDriver
(
"SQL SERVER"
);
8
}
9
public
static
class
SqlServerRegister :
Sql
.ConnectionRegister{
10
Sql.Connection
allocConnection
(
String
drivername)
override
{
11
if
(drivername.
equals
(
"sqlserver"
)){
12
return
new
SqlServer
();
13
}
14
return
nilptr;
15
}
16
};
17
18
public
static
bool
registry
(){
19
20
if
(Helper.init()){
21
Sql
.
Database
.
reigstry
(
"sqlserver"
,
new
SqlServerRegister());
22
return
true
;
23
}
24
25
return
false
;
26
}
27
28
static
bool
registried
=
registry
();
29
};
AdoConnector
Definition
AdoConnector.xcsm:4
AdoConnector.setDriver
void setDriver(String strDrv)
Definition
AdoConnector.xcsm:321
Sql.Database
Definition
xsql.xcs:207
Sql.Database.reigstry
static bool reigstry(String name, ConnectionRegister reg)
Definition
xsql.xcs:210
SqlServer.SqlServerRegister.allocConnection
Sql.Connection allocConnection(String drivername) override
Definition
SqlServer.xcsm:10
SqlServer
Definition
SqlServer.xcsm:4
SqlServer.SqlServer
SqlServer()
Definition
SqlServer.xcsm:6
SqlServer.registry
static bool registry()
Definition
SqlServer.xcsm:18
SqlServer.registried
static bool registried
Definition
SqlServer.xcsm:28
String
字符串类
Definition
BuiltinObjects.x:65
String.equals
bool equals(String)
Sql.Connection
Definition
xsql.xcs:239
Sql
Definition
xsql.xcs:3
制作者
1.9.8