| 603 | // -------------------------------------------------------------------------------------------- |
| 604 | |
| 605 | void database:: |
| 606 | exec ( |
| 607 | const std::string& sql_statement |
| 608 | ) |
| 609 | { |
| 610 | // make sure requires clause is not broken |
| 611 | DLIB_ASSERT(is_open() == true, |
| 612 | "\t void database::exec()" |
| 613 | << "\n\t The database must be opened before calling this routine." |
| 614 | << "\n\t this: " << this |
| 615 | ); |
| 616 | |
| 617 | statement(*this, sql_statement).exec(); |
| 618 | } |
| 619 | |
| 620 | // -------------------------------------------------------------------------------------------- |
| 621 | |