mirror of
https://github.com/jlengrand/exposed-wiki.git
synced 2026-03-10 08:11:18 +00:00
Updates PostgreSQL doc 404 link
This commit is contained in:
committed by
GitHub
parent
84804ed3f9
commit
c1e71b6a3f
4
DSL.md
4
DSL.md
@@ -346,7 +346,7 @@ You can find the documentation for this option for MySQL [here](https://dev.mysq
|
||||
|
||||
If you don't need to get the newly generated values (example: auto incremented ID), set the `shouldReturnGeneratedValues` parameter to false, this increases the performance of batch inserts by batching them in chunks, instead of always waiting for the database to synchronize the newly inserted object state.
|
||||
|
||||
If you want to check if the `rewriteBatchedInserts` + `batchInsert` is working correctly, check how to enable JDBC logging for your driver because Exposed will always show the non-rewritten multiple inserts. You can find the documentation for how to enable logging in PostgreSQL [here](https://jdbc.postgresql.org/documentation/head/logging.html).
|
||||
If you want to check if the `rewriteBatchedInserts` + `batchInsert` is working correctly, check how to enable JDBC logging for your driver because Exposed will always show the non-rewritten multiple inserts. You can find the documentation for how to enable logging in PostgreSQL [here](https://jdbc.postgresql.org/documentation/use/).
|
||||
|
||||
## Insert From Select
|
||||
If you want to use `INSERT INTO ... SELECT ` SQL clause try Exposed analog `Table.insert(Query)`.
|
||||
@@ -358,4 +358,4 @@ By default it will try to insert into all non auto-increment `Table` columns in
|
||||
```kotlin
|
||||
val userCount = users.selectAll().count()
|
||||
users.insert(users.slice(stringParam("Foo"), Random().castTo<String>(VarCharColumnType()).substring(1, 10)).selectAll(), columns = listOf(users.name, users.id))
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user