欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/Agda, C++/Erlang/Lisp
Grails and PostgreSQL
来自开放百科 - 灰狐
(版本间的差异)
小 |
|||
(未显示1个用户的2个中间版本) | |||
第1行: | 第1行: | ||
− | Grails 支持 PostgreSQL | + | [[Grails]] 支持 [[PostgreSQL]] |
grails-app\conf\DataSource.groovy | grails-app\conf\DataSource.groovy | ||
第31行: | 第31行: | ||
dbCreate = "update" | dbCreate = "update" | ||
url = "jdbc:postgresql://localhost:5432/regperfdb" | url = "jdbc:postgresql://localhost:5432/regperfdb" | ||
− | + | }}} | |
− | + | ||
− | + | ||
lib\postgresql-8.3dev-600.jdbc4 | lib\postgresql-8.3dev-600.jdbc4 | ||
+ | |||
+ | [[Category:Grails]] | ||
+ | [[Category:PostgreSQL]] |
2011年5月30日 (一) 08:50的最后版本
Grails 支持 PostgreSQL
grails-app\conf\DataSource.groovy
dataSource { pooled = true driverClassName = "org.postgresql.Driver" username = "postgres" password = "postgres" } hibernate { cache.use_second_level_cache=true cache.use_query_cache=true cache.provider_class='com.opensymphony.oscache.hibernate.OSCacheProvider' } // environment specific settings environments { development { dataSource { dbCreate = "update" // one of 'create', 'create-drop','update' url = "jdbc:postgresql://localhost:5432/regperfdb" } } test { dataSource { dbCreate = "update" url = "jdbc:postgresql://localhost:5432/regperfdb" } } production { dataSource { dbCreate = "update" url = "jdbc:postgresql://localhost:5432/regperfdb" }}}
lib\postgresql-8.3dev-600.jdbc4
分享您的观点