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 a Result instance.
  • 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 β€” Stmt instance

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