QSqlDriverPlugin(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QSqlDriverPlugin πŸ’– (the 3qt manual, bestie)

okay so. welcome to the qsqldriverplugin page, part of the Qt 3qt manual shenanigans. sit down, hydrate, and let's talk about plugins. 🫢


✨ NAME ✨

QSqlDriverPlugin β€” the abstract base class for your own custom QSqlDriver plugins. it's giving "blueprint energy". πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <qsqldriverplugin.h>

🌸 Public Members 🌸

QSqlDriverPlugin ()
~QSqlDriverPlugin ()
virtual QStringList keys () const = 0
virtual QSqlDriver * create ( const QString & key ) = 0

πŸ‘‘ DESCRIPTION πŸ‘‘

so the QSqlDriverPlugin class is literally an abstract base for custom QSqlDriver plugins. that's the whole vibe. ✨

the SQL driver plugin is a simple plugin interface that makes it easy-peasy to create your own SQL driver plugins that can get loaded dynamically by Qt. main character behaviour, honestly. πŸŽ€

writing a SQL plugin? you do it by subclassing this base class, reimplementing the pure virtual functions keys() and create(), and exporting the class with the Q_EXPORT_PLUGIN macro. that's the whole recipe, no cap. πŸ”₯

if you want example implementations, go look at the SQL plugins that come with Qt (they live in the plugins/src/sqldrivers subdirectory of the source distribution). and read the plugins documentation for more info on plugins, iykyk.

See also Plugins.


πŸ’œ MEMBER FUNCTION DOCUMENTATION πŸ’œ

QSqlDriverPlugin::QSqlDriverPlugin ()

constructs a SQL driver plugin. this one gets invoked automatically by the Q_EXPORT_PLUGIN macro β€” so like, you don't summon it, it just shows up. ✨

QSqlDriverPlugin::~QSqlDriverPlugin ()

destroys the SQL driver plugin. πŸ’€

you never have to call this explicitly. Qt destroys a plugin automatically when it's no longer used. periodt. so don't be out here manually deleting things, bestie.

QSqlDriver * QSqlDriverPlugin::create ( const QString & key ) [pure virtual]

creates and returns a QSqlDriver object for the driver key key. the driver key is usually the class name of the required driver. 🌈

See also keys().

QStringList QSqlDriverPlugin::keys () const [pure virtual]

returns the list of drivers (keys) this plugin supports. πŸŽ€

these keys are usually the class names of the custom drivers that are implemented in the plugin.

See also create().


πŸ” SEE ALSO πŸ”


Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. see the license file included in the distribution for a complete license statement. πŸ’–


✍️ AUTHOR ✍️

Generated automatically from the source code. (not me, not you, the machine did it. iconic honestly.) πŸ€–βœ¨


πŸ› BUGS πŸ›

if you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. good bug reports help us to help you. thank you. 🫢 (yes bestie, good bug reports are a love language.)

the definitive Qt documentation is provided in HTML format β€” it's located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. this man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. πŸ™ˆ

if you find errors in this manual page, please report them to qt-bugs@trolltech.com. please include the name of the manual page (qsqldriverplugin.3qt) and the Qt version (3.3.8). like, don't just say "it's broken", give them the receipts. πŸ’…


and that's the whole page, bestie!! this beauty came from Trolltech AS, dated 2 February 2007, and it's the QSqlDriverPlugin(3qt) page β€” go forth and write plugins that slay. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from