Documentation.

This commit is contained in:
Nuno Cruces
2023-05-11 15:19:57 +01:00
parent b5e678a40a
commit be4b6304f9
4 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
package sqlite3 package sqlite3
// Backup is a handle to an open BLOB. // Backup is an handle to an ongoing online backup operation.
// //
// https://www.sqlite.org/c3ref/backup.html // https://www.sqlite.org/c3ref/backup.html
type Backup struct { type Backup struct {

View File

@@ -11,7 +11,7 @@ import (
// [database/sql.DB.Exec] and similar methods. // [database/sql.DB.Exec] and similar methods.
type ZeroBlob int64 type ZeroBlob int64
// Blob is a handle to an open BLOB. // Blob is an handle to an open BLOB.
// //
// It implements [io.ReadWriteSeeker] for incremental BLOB I/O. // It implements [io.ReadWriteSeeker] for incremental BLOB I/O.
// //

View File

@@ -37,7 +37,6 @@ int os_unlock(sqlite3_file *, int eLock);
int os_check_reserved_lock(sqlite3_file *, int *pResOut); int os_check_reserved_lock(sqlite3_file *, int *pResOut);
static int os_file_control_w(sqlite3_file *file, int op, void *pArg) { static int os_file_control_w(sqlite3_file *file, int op, void *pArg) {
struct os_file *pFile = (struct os_file *)file;
if (op == SQLITE_FCNTL_VFSNAME) { if (op == SQLITE_FCNTL_VFSNAME) {
*(char **)pArg = sqlite3_mprintf("%s", "os"); *(char **)pArg = sqlite3_mprintf("%s", "os");
return SQLITE_OK; return SQLITE_OK;

View File

@@ -55,5 +55,5 @@
// #define SQLITE_ENABLE_SESSION 1 // #define SQLITE_ENABLE_SESSION 1
// #define SQLITE_ENABLE_PREUPDATE_HOOK 1 // #define SQLITE_ENABLE_PREUPDATE_HOOK 1
// Implemented in Go. // Implemented in os.c.
int localtime_s(struct tm *const pTm, time_t const *const pTime); int localtime_s(struct tm *const pTm, time_t const *const pTime);