mirror of
https://github.com/jlengrand/exposed-wiki.git
synced 2026-03-10 08:11:18 +00:00
Exposed release 0.14.1 with H2 support
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.exposed</groupId>
|
||||
<artifactId>exposed</artifactId>
|
||||
<version>0.13.7</version>
|
||||
<version>0.14.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
@@ -28,7 +28,7 @@ repositories {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
compile 'org.jetbrains.exposed:exposed:0.13.7'
|
||||
compile 'org.jetbrains.exposed:exposed:0.14.1'
|
||||
}
|
||||
```
|
||||
|
||||
@@ -43,11 +43,7 @@ Every database access using Exposed is started by obtaining a connection and cre
|
||||
To get a connection:
|
||||
|
||||
```kotlin
|
||||
// h2 version < 1.4.198
|
||||
Database.connect("jdbc:h2:mem:test", driver = "org.h2.Driver")
|
||||
|
||||
// h2 version 1.4.198+
|
||||
Database.connect("jdbc:h2:mem:test?DATABASE_TO_UPPER=false;", driver = "org.h2.Driver")
|
||||
```
|
||||
|
||||
It is also possible to provide `javax.sql.DataSource` for advanced behaviors such as connection pooling:
|
||||
|
||||
Reference in New Issue
Block a user