61 connectionName), NULL,
static QObject * database(const QString &connectionName)
Obtains a SQL database from the list of database connections. The named connection must have previous...
This class allows QSqlDatabase objects to be accessed directly from QML code. (database sprocket) ...
static QObject * newObject(QObject *parent)
Sprocket object constructor for creating ZblDatabase objects in javascript background threads...
Q_INVOKABLE QStringList sqlGetConnectionNames()
Obtains the names of SQL database connections.
static QObject * addDatabase(const QString &driverType, const QString &connectionName)
Adds a SQL database to the list of database connections.
Q_INVOKABLE QObject * sqlGetDatabase(const QString &connectionName)
Obtains a SQL database from the list of database connections. The named connection must have previous...
#define ZBL_REGISTER_LOGGED_OBJECT
static void removeDatabase(const QString &connectionName)
Removes a SQL database from the list of database connections.
Q_INVOKABLE void sqlRemoveDatabase(const QString &connectionName)
Removes a SQL database from the list of database connections.
#define ZBL_SLOT_BEGIN_TRY
#define ZBL_DEFINE_LOGGED_OBJECT(class_name)
Q_INVOKABLE bool sqlContainsConnection(const QString &connectionName)
Determines if a named SQL database connection exists.
#define ZBL_SLOT_END_VOID(facility, code, error_message)
Q_INVOKABLE QObject * sqlAddDatabase(const QString &driverType, const QString &connectionName)
Adds a SQL database to the list of database connections. If a connection of the same name exists it i...
void setText(const QString &text)
Q_INVOKABLE bool sqlIsDriverAvailable(const QString &driverName)
Determines if a named SQL database driver is available.
ZblDatabase(QObject *parent=0)
static void registerType()
Registers ZblDatabase as a QML type.
#define zblRegisterType(uri, versionMajor, versionMinor, qmlName, typeName, createFunc)
#define ZBL_SLOT_END_RETURN(return_success, return_failed, facility, code, error_message)
ZBL_DECLARE_LOGGED_OBJECT QString m_text