| 311 | } |
| 312 | |
| 313 | double get_column_as_double ( |
| 314 | unsigned long idx |
| 315 | ) const |
| 316 | { |
| 317 | // make sure requires clause is not broken |
| 318 | DLIB_ASSERT(idx < get_num_columns(), |
| 319 | "\t double statement::get_column_as_double()" |
| 320 | << "\n\t Invalid column index." |
| 321 | << "\n\t idx: " << idx |
| 322 | << "\n\t this: " << this |
| 323 | ); |
| 324 | |
| 325 | return sqlite3_column_double(stmt, idx); |
| 326 | } |
| 327 | |
| 328 | int get_column_as_int ( |
| 329 | unsigned long idx |