| fb-cpp 0.0.1
    A modern C++ wrapper for the Firebird database API | 
Represents a connection to a Firebird database. More...
#include <Attachment.h>
| Public Member Functions | |
| Attachment (Client &client, const std::string &uri, const AttachmentOptions &options={}) | |
| Constructs an Attachment object that connects to (or creates) the database specified by the URI using the specified Client object and options. | |
| Attachment (Attachment &&o) noexcept | |
| Move constructor. | |
| Attachment & | operator= (Attachment &&)=delete | 
| Attachment (const Attachment &)=delete | |
| Attachment & | operator= (const Attachment &)=delete | 
| ~Attachment () noexcept | |
| Disconnects from the database. | |
| bool | isValid () noexcept | 
| Returns whether the Attachment object is valid. | |
| Client & | getClient () noexcept | 
| Returns the Client object reference used to create this Attachment object. | |
| FbRef< fb::IAttachment > | getHandle () noexcept | 
| Returns the internal Firebird IAttachment handle. | |
| void | disconnect () | 
| Disconnects from the database. | |
| void | dropDatabase () | 
| Drops the database. | |
Represents a connection to a Firebird database.
The Attachment must exist and remain valid while there are other objects using it, such as Transaction and Statement.
Definition at line 176 of file Attachment.h.
| 
 | explicit | 
Constructs an Attachment object that connects to (or creates) the database specified by the URI using the specified Client object and options.
Definition at line 33 of file Attachment.cpp.
| 
 | inlinenoexcept | 
Move constructor.
A moved Attachment object becomes invalid.
Definition at line 189 of file Attachment.h.
| 
 | inlinenoexcept | 
Disconnects from the database.
Definition at line 203 of file Attachment.h.
| void Attachment::disconnect | ( | ) | 
Disconnects from the database.
Definition at line 83 of file Attachment.cpp.
| void Attachment::dropDatabase | ( | ) | 
Drops the database.
Definition at line 88 of file Attachment.cpp.
| 
 | inlinenoexcept | 
Returns the Client object reference used to create this Attachment object.
Definition at line 230 of file Attachment.h.
| 
 | inlinenoexcept | 
Returns the internal Firebird IAttachment handle.
Definition at line 238 of file Attachment.h.
| 
 | inlinenoexcept | 
Returns whether the Attachment object is valid.
Definition at line 222 of file Attachment.h.