184 bool exec(
const std::string &query);
186 return(QSqlQuery::exec());
192 int fieldIndex(
const std::string &name)
const;
202 void tossQueryError(
const std::string &message,
const char *f,
int l)
const;
std::vector< std::string > fieldTypeList() const
Returns the types of each field/column in a resutling query.
SqlQuery()
Default constructor.
std::vector< std::string > fieldNameList() const
Returns the names of all fields in the resulting query.
Connect to database immediately.
SqlRecord getRecord() const
Returns a SqlRecord for the current query row.
bool isThrowing() const
Report error status when executing queries.
int fieldIndex(const std::string &name) const
Returns index of column for given name.
void tossQueryError(const std::string &message, const char *f, int l) const
Issues an IException from various sources of error states in this class.
void setThrowOnFailure()
Sets throwing of exceptions on errors to true.
Construct and execute a query on a database and manage result.
bool _throwIfFailed
User can select action on query results.
Isis database class providing generalized access to a variety of databases.
std::string getQuery() const
Returns the executed query string.
Namespace for ISIS/Bullet specific routines.
int nFields() const
Returns the number of fields (columns) from query.
void setNoThrowOnFailure()
Turns throwing of iExceptions off on errors.
std::string fieldName(int index) const
Returns the column name of the resulting query at the given index.
int nRows() const
Returns the count of rows resulting from the query.