Method: Libsql::SQLite3::Statement#parameter_count

Defined in:
ext/libsql/c/libsql_statement.c

#parameter_countInteger

return the index of the largest parameter in the in the statement. For all forms except ?NNN this is the number of unique parameters. Using ?NNN can create gaps in the list of parameters.



225
226
227
228
229
230
231
# File 'ext/libsql/c/libsql_statement.c', line 225

VALUE libsql_ext_sqlite3_statement_bind_parameter_count(VALUE self)
{
    libsql_ext_sqlite3_stmt  *libsql_ext_stmt;
    
    Data_Get_Struct(self, libsql_ext_sqlite3_stmt, libsql_ext_stmt);
    return INT2FIX(sqlite3_bind_parameter_count( libsql_ext_stmt->stmt ) );
}