This example demonstrates how to create and use an encrypted SQLite database with libSQL.
pip install libsql-experimental
Execute the example:
python3 main.py
This example will:
- Create a new table called
users
. - Start a transaction.
- Insert multiple users within the transaction.
- Demonstrate how to rollback a transaction.
- Start another transaction.
- Insert more users and commit the transaction.
- Query and display the final state of the
users
table.