dbstreams Provider Reference: Reference Manual for a dbstreams Provider class | ||
---|---|---|
Prev | Chapter 2. provider Methods | Next |
public virtual const STATUS& open(const std::string& server, const std::string& dbname);
|
public virtual const STATUS& open(const std::string& tablename);
|
The first form opens a connection to the database. Failure is indicated through the returned object.
The second form initiates insertion into a table.
The provider should make every attempt to close the connection successfully. If that is not possible — say, because a user-defined transaction is uncommitted — the native library will almost certainly return an error. If it does, the provider throws its dbstatus
object.