aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_opt_column_metadata.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-08-12 15:42:56 -0300
committerEuAndreh <eu@euandre.org>2024-08-12 15:52:16 -0300
commit6bbc33b9e998af7ee45cca86e1290474603dff48 (patch)
tree5d0aff47783bc20dcf3f7862afdba0445e4c2fae /sqlite3_opt_column_metadata.go
parentAdd Makefile and build skeleton (diff)
downloadgolite-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.go22
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)))
-}