Filenames.

This commit is contained in:
Nuno Cruces
2024-07-26 01:23:35 +01:00
parent 8d450f82fc
commit 32d998c84b
5 changed files with 11 additions and 11 deletions

View File

@@ -228,7 +228,7 @@ func (c *Conn) Filename(schema string) *vfs.Filename {
ptr = c.arena.string(schema)
}
r := c.call("sqlite3_db_filename", uint64(c.handle), uint64(ptr))
return vfs.OpenFilename(c.ctx, c.mod, uint32(r), vfs.OPEN_MAIN_DB)
return vfs.GetFilename(c.ctx, c.mod, uint32(r), vfs.OPEN_MAIN_DB)
}
// ReadOnly determines if a database is read-only.