Home | History | Annotate | Download | only in cli

Lines Matching refs:stmt

79 /// \param stmt The statement whose cell to format.
84 cli::format_cell(sqlite::statement& stmt, const int index)
86 switch (stmt.column_type(index)) {
88 const sqlite::blob blob = stmt.column_blob(index);
93 return F("%s") % stmt.column_double(index);
96 return F("%s") % stmt.column_int64(index);
102 return stmt.column_text(index);
111 /// \param stmt The statement whose columns to format.
115 cli::format_headers(sqlite::statement& stmt)
119 for (; i < stmt.column_count() - 1; ++i)
120 output += stmt.column_name(i) + ',';
121 output += stmt.column_name(i);
128 /// \param stmt The statement whose current row to format.
132 cli::format_row(sqlite::statement& stmt)
136 for (; i < stmt.column_count() - 1; ++i)
137 output += cli::format_cell(stmt, i) + ',';
138 output += cli::format_cell(stmt, i);
170 sqlite::statement stmt = backend.database().create_statement(
173 if (stmt.step()) {
175 ui->out(cli::format_headers(stmt));
177 ui->out(cli::format_row(stmt));
178 while (stmt.step());