`
sillycat
  • 浏览: 2551105 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

PostgreSQL(2)Using of postgresql-async

    博客分类:
  • JAVA
 
阅读更多
PostgreSQL(2)Using of postgresql-async

1. Introduce and Configuration
        "com.github.mauricio"    %% "mysql-async"                % "0.2.12",
        "com.github.mauricio"    %% "postgresql-async"           % "0.2.12",

Connection
PostgreSQLConnection, MySQLConnection, ConnectionPool

QueryResult
sendQuery, sendPreparedStatement, ResultSet

ResultSet
IndexedSeq[Array[Any]]
smallint ——> Short
numeric ———>BigDecimal
varchar ———> String

Prepared Statements
val connection = Connection = …
val future = connection.sendPreparedStatement( “ SELECT * FROM usertable WHERE usertable.name = ? “, Array( “sillycat” ) )

Transactions
inTransaction

UI Client Tool
http://www.pgadmin.org/


References:
https://github.com/mauricio/postgresql-async
http://www.pgadmin.org/

http://sillycat.iteye.com/blog/2035746







分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics