ThinSQLite++
A thin, safe and convenient modern C++ wrapper for SQLite API.
Loading...
Searching...
No Matches
statement_parser Class Reference

Parses text containing multiple SQL statements. More...

Public Member Functions

 statement_parser (const database &db, std::string_view sql)
 Create a parser for the given database and SQL text.
 
std::unique_ptr< statementnext ()
 Return the next statement if any.
 

Detailed Description

Parses text containing multiple SQL statements.

This helper class allows you to iterate over text containing multiple SQL statements and generate statement instances from them

Member Function Documentation

◆ next()

Return the next statement if any.

Returns
Next statement or nullptr when done