Skip to content

Commit

Permalink
Merge 03710ce into a72efd6
Browse files Browse the repository at this point in the history
  • Loading branch information
zgramana committed May 12, 2018
2 parents a72efd6 + 03710ce commit e57cca6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sqlite3.go
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,17 @@ const (
SQLITE_LIMIT_WORKER_THREADS = C.SQLITE_LIMIT_WORKER_THREADS
)

// GetFilename returns the absolute path to the file containing
// the requested schema. When passed an empty string, it will
// instead use the database's default schema: "main".
// See: sqlite3_db_filename, https://www.sqlite.org/c3ref/db_filename.html
func (c *SQLiteConn) GetFilename(schemaName string) string {
if schemaName == "" {
schemaName = "main"
}
return C.GoString(C.sqlite3_db_filename(c.db, C.CString(schemaName)))
}

// GetLimit returns the current value of a run-time limit.
// See: sqlite3_limit, http://www.sqlite.org/c3ref/limit.html
func (c *SQLiteConn) GetLimit(id int) int {
Expand Down

0 comments on commit e57cca6

Please sign in to comment.