File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1612,6 +1612,17 @@ const (
1612
1612
SQLITE_LIMIT_WORKER_THREADS = C .SQLITE_LIMIT_WORKER_THREADS
1613
1613
)
1614
1614
1615
+ // GetFilename returns the absolute path to the file containing
1616
+ // the requested schema. When passed an empty string, it will
1617
+ // instead use the database's default schema: "main".
1618
+ // See: sqlite3_db_filename, https://www.sqlite.org/c3ref/db_filename.html
1619
+ func (c * SQLiteConn ) GetFilename (schemaName string ) string {
1620
+ if schemaName == "" {
1621
+ schemaName = "main"
1622
+ }
1623
+ return C .GoString (C .sqlite3_db_filename (c .db , C .CString (schemaName )))
1624
+ }
1625
+
1615
1626
// GetLimit returns the current value of a run-time limit.
1616
1627
// See: sqlite3_limit, http://www.sqlite.org/c3ref/limit.html
1617
1628
func (c * SQLiteConn ) GetLimit (id int ) int {
You can’t perform that action at this time.
0 commit comments