VFS xFullPathname.

This commit is contained in:
Nuno Cruces
2023-01-18 11:40:08 +00:00
parent 9c04d4c5e6
commit 77ff4ea51b
4 changed files with 52 additions and 5 deletions

View File

@@ -12,10 +12,20 @@ int go_sleep(sqlite3_vfs *, int microseconds);
int go_current_time(sqlite3_vfs *, double *);
int go_current_time_64(sqlite3_vfs *, sqlite3_int64 *);
int go_open(sqlite3_vfs *, sqlite3_filename zName, sqlite3_file *, int flags,
int *pOutFlags);
int go_full_pathname(sqlite3_vfs *, const char *zName, int nOut, char *zOut);
int sqlite3_os_init() {
static sqlite3_vfs go_vfs = {
.iVersion = 2,
.szOsFile = sizeof(sqlite3_file),
.mxPathname = 512,
.zName = "go",
.xOpen = go_open,
.xFullPathname = go_full_pathname,
.xRandomness = go_randomness,
.xSleep = go_sleep,
.xCurrentTime = go_current_time,