1 Star 0 Fork 1

suzd/go-sqlite3-sqlcipher

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
sqlite3_opt_column_metadata.go 623 Bytes
Copy Edit Raw Blame History
// +build sqlite_column_metadata
package sqlite3
/*
#cgo CFLAGS: -DSQLITE_ENABLE_COLUMN_METADATA
#if defined(USE_LIBSQLITE3)
#include <sqlite3.h>
#elif defined(USE_LIBSQLCIPHER)
#include <sqlcipher/sqlite3.h>
#elif defined(USE_SQLCIPHER)
#include "sqlcipher-binding.h"
#else
#include "sqlite3-binding.h"
#endif
*/
import "C"
// ColumnTableName returns the table that is the origin of a particular result
// column in a SELECT statement.
//
// See https://www.sqlite.org/c3ref/column_database_name.html
func (s *SQLiteStmt) ColumnTableName(n int) string {
return C.GoString(C.sqlite3_column_table_name(s.s, C.int(n)))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wefuture/go-sqlite3-sqlcipher.git
git@gitee.com:wefuture/go-sqlite3-sqlcipher.git
wefuture
go-sqlite3-sqlcipher
go-sqlite3-sqlcipher
v1.0.1

Search