From 6bbc33b9e998af7ee45cca86e1290474603dff48 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 12 Aug 2024 15:42:56 -0300 Subject: Build with "go tool" and hackishly bundle code from same package into one file each --- sqlite3_opt_column_metadata.go | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 sqlite3_opt_column_metadata.go (limited to 'sqlite3_opt_column_metadata.go') diff --git a/sqlite3_opt_column_metadata.go b/sqlite3_opt_column_metadata.go deleted file mode 100644 index 63659b4..0000000 --- a/sqlite3_opt_column_metadata.go +++ /dev/null @@ -1,22 +0,0 @@ -//go:build sqlite_column_metadata -// +build sqlite_column_metadata - -package sqlite3 - -/* -#ifndef USE_LIBSQLITE3 -#cgo CFLAGS: -DSQLITE_ENABLE_COLUMN_METADATA -#include -#else -#include -#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))) -} -- cgit v1.2.3