Skip to content

Commit

Permalink
Oracle and SQL Server docs about running tests locally actualized
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapac committed Nov 2, 2017
1 parent c8fb4fe commit ffabdf8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
10 changes: 7 additions & 3 deletions ORACLE.md
Expand Up @@ -6,7 +6,11 @@
* `autoinc` columns supported by sequences, need an argument with sequence name
* `insert` with `select` with `limit` not supported (`DMLTests.testInsertSelect01`)

### Running tests locally
### Running tests locally with Gradle
* Set `dialect` in gradle.properties to 'oracle'
* Run `exposedDialectTestWithDocker` gradle task

* Run Oracle locally, e.g. with `sath89/oracle-12c` Docker image
* Run tests with `-Dexposed.test.dialects=oracle`
### Running tests locally with Docker
* Run SQL Server locally, e.g. with `sath89/oracle-12c` Docker image or use `docker-compose -f docker-compose-oracle.yml up`
* Run tests with `-Dexposed.test.dialects=oracle`,
(optionally you may need to provide `-Dexposed.test.oracle.host=_YOUR_DOCKER_HOST_ -exposed.test.oracle.port=_SQLSERVER_SERVER_EXPOSED_PORT_`)
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -17,6 +17,7 @@ Currently supported database dialects:
* [Oracle](ORACLE.md)
* SQLite
* H2
* [SQL Server](SQLServer.md)

## SQL DSL sample:
```kotlin
Expand Down
17 changes: 9 additions & 8 deletions SQLServer.md
@@ -1,13 +1,14 @@
##SQL Server dialect

### Limitations

* Batch insert actually inserts rows one by one, because SQLServer do not return generated keys.
* SQL Server looses precision when it stores timestamps.

### Running tests locally
### Running tests locally with Gradle
* Set `dialect` in gradle.properties to 'sqlserver'
* Run `exposedDialectTestWithDocker` gradle task

### Running tests locally with Docker
* Run SQL Server locally, e.g. with Docker image with command like
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d microsoft/mssql-server-linux
* Run tests with `-Dexposed.test.dialects=sqlserver`
`docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d microsoft/mssql-server-linux`
or use `docker-compose -f docker-compose-sqlserver.yml up`

* Run tests with `-Dexposed.test.dialects=sqlserver`,
(optionally you may need to provide `-Dexposed.test.sqlserver.host=_YOUR_DOCKER_HOST_ -exposed.test.sqlserver.port=_SQLSERVER_SERVER_EXPOSED_PORT_`)

0 comments on commit ffabdf8

Please sign in to comment.