On 21 Jul 2019, at 8:03pm, test user <example.com.use...@gmail.com> wrote:

> Is there a `sqlite3` C FFI API that allows me to determine which index values 
> are valid to bind to?

I think you're talking about one of these two:

int sqlite3_bind_parameter_index(sqlite3_stmt*, const char *zName);
const char *sqlite3_bind_parameter_name(sqlite3_stmt*, int);

Those are functions which can be used to convert between parameter numbers and 
the names of named parameters.

'index' here means the parameter number in a statement.  The first parameter 
has an index of 1.  And you can find out how many parameters a statement has 
using

int sqlite3_bind_parameter_count(sqlite3_stmt*);

So any integer between 1 and the count is valid.
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to