diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2022-07-23 08:57:35 -0600 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2022-08-16 21:21:55 +0900 |
commit | a2e94c9d580d202e5a4ebf1c731a51d187034775 (patch) | |
tree | 677b3a47808a93ca50094a8a59e6922fba88d6b7 /sqlite3_opt_os_trace.go | |
parent | Update amalgamation code (diff) | |
download | golite-a2e94c9d580d202e5a4ebf1c731a51d187034775.tar.gz golite-a2e94c9d580d202e5a4ebf1c731a51d187034775.tar.xz |
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.
Diffstat (limited to 'sqlite3_opt_os_trace.go')
-rw-r--r-- | sqlite3_opt_os_trace.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sqlite3_opt_os_trace.go b/sqlite3_opt_os_trace.go new file mode 100644 index 0000000..9a30566 --- /dev/null +++ b/sqlite3_opt_os_trace.go @@ -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" |