-
Notifications
You must be signed in to change notification settings - Fork 80
Wasp JDBC
jaywong85 edited this page Jul 23, 2013
·
5 revisions
系统提供了JDBC的方式访问SQL。
例子:
首先准备配置文件wasp-conf.properties
示例配置如下:
wasp.zookeeper.quorum=10.232.98.31
wasp.zookeeper.property.clientPort=2181
启动JDBC代码示例:
Properties properties = util.getConf("/wasp-conf.properties");
org.apache.wasp.jdbc.Driver.load();
conn = DriverManager.getConnection("jdbc:wasp:", properties);
stat = conn.createStatement();