OpenDBX::Stmt(3)
β¨ OpenDBX::Stmt β¨
okay so bestie, buckle up β this is the OpenDBX::Stmt(3) page, from the opendbx manual, and it's literally all about the Statement object. π
πΈ NAME πΈ
OpenDBX::Stmt β Statement object. that's it, that's the vibe π«Ά
π¦ SYNOPSIS π¦
π Public Types
enum Typeβ Statement objects which can be created. π
π Public Member Functions
Result execute () throw ( std::exception )β Executes a statement and returns aResultinstance.Stmt & operator= (const Stmt &ref) throw ()β Assigns a statement instance to another one.Stmt (const Stmt &ref) throw ()β Copy constructor.~Stmt () throw ()β Destroys the statement instance if no other references exist.
π Protected Member Functions
Stmt () throw ()β Default constructor.Stmt (Stmt_Iface *impl) throw ( std::exception )β Creates a statement instance.
π Detailed Description π
Statement object. periodt. β¨
Author Norbert Sendetzky norbert@linuxnetworks.de π«Ά
Version 1.0
π Member Enumeration Documentation π
π enum OpenDBX::Stmt::Type
Statement objects which can be created. so like, rn only simple processing of statements is supported β meaning the statement sent to the database server consists of the statement and the parameters in text form. later on, prepared statements will also be available, which separate parsing and execution with different parameters. iykyk π₯
π§ Constructor & Destructor Documentation π§
π« OpenDBX::Stmt::Stmt () [inline], [protected]
Default constructor. bestie listen β the default constructor isn't part of the public interface, because the object must not be created manually. instead, the Conn::create() method is a factory for instances of the Stmt class. main character energy only, no DIY π
Returns Statement instance
π« OpenDBX::Stmt::Stmt (Stmt_Iface * impl) std::exception [protected]
Creates a statement instance. and again β the constructor isn't part of the public interface, because the object must not be created manually. instead, the Conn::create() method is a factory for instances of the Stmt class. π
Parameters
implβ Pointer to private implementation
Exceptions
std::exceptionβ If an error occures
Returns Statement instance
π« OpenDBX::Stmt::~Stmt ()
Destroys the statement instance if no other references exist. each statement object uses a reference counter to remember if the internal variables are shared with other objects. if this isn't the case, or if this object is the last one referencing the variables, the object is cleaned up and the allocated memory freed. literally the cleanup crew π§Ήβ¨
π« OpenDBX::Stmt::Stmt (const Stmt & ref)
Copy constructor. enables the transfer of the internal state of an object ref of the same type to this object. both objects share the same variables and the reference counter afterwards. the reference counter is incremented each time an object is copied and will be decremented if it is destroyed. shared custody but make it C++ π
Parameters
refβ Original statement object instance
β Member Function Documentation β
π Result OpenDBX::Stmt::execute () std::exception
Executes a statement and returns a Result instance. sends the necessary data to the database server, which will execute the statement and return one or more result sets afterwards. the result sets can be fetched via the returned Result object. this is the moment, the whole plot π
Returns Result instance
Exceptions
OpenDBX::Exceptionβ If the underlying database library returns an error
See also Result
π Stmt & OpenDBX::Stmt::operator= (const Stmt & ref)
Assigns a statement instance to another one. assigns the internal state of an object ref of the same type to this object. both objects share the same variables and the reference counter afterwards. the reference counter is incremented each time an object is copied and will be decremented if it is destroyed. same energy as the copy constructor, no cap π«Ά
Parameters
refβStmtinstance
Returns Statement reference of this instance
π Author π
Generated automatically by Doxygen for opendbx from the source code. slay, the robots did the typing π€π
and that's the whole page, bestie!! π this was OpenDBX::Stmt(3) β Version 1.4.6, dated Fri Feb 6 2026 20:17:56, brought to you by opendbx. go forth and execute() responsibly β¨π¦πΈ
π¦ where this page comes from
- ubuntu resolute: libopendbx1-dev 1.4.6-18build2
- ubuntu stonking: libopendbx1-dev 1.4.6-18build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms