JDBC Serializer
Last updated
Last updated
Use to serialize Java object to the Candid payload of type RECORD.
A fully functional example using JDBCSerializer can be found .
This example uses Motoko to call the canister . The canister uses complex type CreditCheck.
The canister has 1 method: apply and setCredit.
The example uses the data from embedded SQL database as an input. Database table is reinitialized every time the sample runs.
Execute to get ResultSet data from the database.
The Serializer input is the variable of type . To serialize individual row from ResultSet to Candid RECORD use function array with false value. Otherwise the result will be Candid VEC type, wrapping Candid RECORD items.
Use, or to call the Canister.