diff options
author | EuAndreh <eu@euandre.org> | 2024-08-12 15:42:56 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-08-12 15:52:16 -0300 |
commit | 6bbc33b9e998af7ee45cca86e1290474603dff48 (patch) | |
tree | 5d0aff47783bc20dcf3f7862afdba0445e4c2fae /sqlite3_opt_column_metadata.go | |
parent | Add Makefile and build skeleton (diff) | |
download | golite-6bbc33b9e998af7ee45cca86e1290474603dff48.tar.gz golite-6bbc33b9e998af7ee45cca86e1290474603dff48.tar.xz |
Build with "go tool" and hackishly bundle code from same package into one file each
Diffstat (limited to 'sqlite3_opt_column_metadata.go')
-rw-r--r-- | sqlite3_opt_column_metadata.go | 22 |
1 files changed, 0 insertions, 22 deletions
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 <sqlite3-binding.h> -#else -#include <sqlite3.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))) -} |