Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckpointAndClose ¶ added in v1.51.0
CheckpointAndClose runs a final WAL checkpoint and closes the database. The TRUNCATE checkpoint folds the -wal file back into the main database so it isn't left behind on disk after shutdown. A checkpoint failure is logged but does not prevent the close.
func DiagnoseDBOpenError ¶
DiagnoseDBOpenError provides a more helpful error message when SQLite fails to open/create a database file.
func IsCantOpenError ¶
IsCantOpenError checks if the error is a SQLite CANTOPEN error (code 14).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.