litesql
A library that makes SQLite3 reads and writes easier to handle in Go applications.
What does it do?
After adding the package to a Go project, developers open a database and start a read or write transaction. It provides convenience functions for querying rows and methods for checking write results; write transactions must be committed or rolled back. A snapshot method creates a copy of the database at a specific point in time for backups or read-only sharing. Functions for removing special characters from FTS5 search terms and methods for database maintenance are also documented.
Key features
- Start read and write transactions with separate methods.
- Read query results with row-query convenience functions.
- Create database snapshot files for backups or read-only copies.
- Remove special characters from FTS5 search terms.
- Maintain databases with Optimize, Analyze, and Vacuum methods.