- First, install Postgresql database.
- Download the postgresql driver jar and copy the Postgresql JDBC driver jar into $BALLERINA_HOME/bre/lib.
- Connect to your postgresql server and create a database:
This is the sample to create a table using the Ballerina jdbc client, then insert a BIT data type record to the table.
Ballerina version used: 0.992.0
Running the sample:
ballerina run workingWithBitDataPostgresql.bal
Output:
Create BitTypes table status: 0 Update BitTypes table status: 1
No comments:
Post a Comment