Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build tag to enable OSTRACE() logging
This commit adds the `sqlite_os_trace` build tag which sets the `SQLITE_FORCE_OS_TRACE` and `SQLITE_DEBUG_OS_TRACE` compilation flags. This produces verbose debugging output of every operating system call made by SQLite.
- Loading branch information
1 parent
d8e192b
commit a2e94c9
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (C) 2022 Yasuhiro Matsumoto <mattn.jp@gmail.com>. | ||
// | ||
// Use of this source code is governed by an MIT-style | ||
// license that can be found in the LICENSE file. | ||
|
||
//go:build sqlite_os_trace | ||
// +build sqlite_os_trace | ||
|
||
package sqlite3 | ||
|
||
/* | ||
#cgo CFLAGS: -DSQLITE_FORCE_OS_TRACE=1 | ||
#cgo CFLAGS: -DSQLITE_DEBUG_OS_TRACE=1 | ||
*/ | ||
import "C" |