GoLang sqlite_field_name

request it (244)
GoLang replacement for PHP's sqlite_field_name [edit | history]

Do you know a GoLang replacement for PHP's sqlite_field_name? Write it!

PHP sqlite_field_name

PHP original manual for sqlite_field_name [ show | php.net ]




(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0)

sqlite_field_name -- SQLiteResult::fieldName -- SQLiteUnbuffered::fieldNameReturns the name of a particular field


string sqlite_field_name ( resource $result , int $field_index )

Object oriented style (method):

string SQLiteResult::fieldName ( int $field_index )
string SQLiteUnbuffered::fieldName ( int $field_index )

Given the ordinal column number, field_index, sqlite_field_name() returns the name of that field in the result set result.



The SQLite result resource. This parameter is not required when using the object-oriented method.


The ordinal column number in the result set.

Return Values

Returns the name of a field in an SQLite result set, given the ordinal column number; FALSE on error.

The column names returned by SQLITE_ASSOC and SQLITE_BOTH will be case-folded according to the value of the sqlite.assoc_case configuration option.