Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-109507

QSqlDatabase::setConnectOptions() needs a better documentation for the possible options

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.6.0
    • 6.5
    • Documentation, SQL Support
    • None
    • All
    • 35f9f2bb0 (dev)

    Description

      This is a small task for the documentation team. We need a better documentation for the connect options in https://doc.qt.io/qt-6/qsqldatabase.html#setConnectOptions
      I would be happy with a table for each database driver, e.g.

       

      ODBC
      The options directly map to the options shown in the msdn documentation

      SQL_ATTR_ACCESS_MODE SQL_MODE_READ_ONLY
      SQL_MODE_READ_WRITE
      SQL_ATTR_LOGIN_TIMEOUT =0 - disabled
      >0 - timeout in seconds

      It would be nice to get a qdoc template because I can't create qdoc documentation locally so it would be a big try'n'error to fiddle out the correct syntax.

      Attachments

        For Gerrit Dashboard: QTBUG-109507
        # Subject Branch Project Status CR V

        Activity

          People

            docteam Qt Documentation Team
            chehrlic Christian Ehrlicher
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes