Files
postgres-json/docs/usage/init-connection.md
2021-07-11 19:07:29 +02:00

14 lines
281 B
Markdown

# Init connection
Before execute any query you must instantiate the connection.
```kotlin
import fr.postgresjson.connexion.Connection
val connection = Connection(
host = "localhost",
port = 5432,
database = "mydb",
username = "john",
password = "azerty"
)
```