Create documentation
This commit is contained in:
14
docs/usage/init-connection.md
Normal file
14
docs/usage/init-connection.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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"
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user