Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-19275

Provide SQL service to plugins.

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 10.7.1
    • Plugins
    • None

    Description

      It'd be useful for some plugins to read/store data from/to server tables.
      So we can provide the service (as it is defined in the Plugin API) with that functionality.
      The functions of that service look exactly as their counterparts from the client library, so users won't be needing extra documentation.
      The decided set of functions is:
      mysql_init
      mysql_real_connect
      mysql_options
      mysql_close
      mysql_real_query
      mysql_affected_rows
      mysql_errno
      mysql_error
      mysql_store_result
      mysql_free_result
      mysql_num_rows
      mysql_num_fields
      mysql_fetch_row
      mysql_fetch_lengths

      So that the plugin can do calls like
      mysql_real_connect();
      mysql_real_query();..
      res= mysql_store_result();
      ...
      and it's supposed to work as it does with the client library. The only addition is the
      MYSQL_CONNECT_LOCAL option. Connection of that sort attaches to the server itself.

      These local queries handled using Server_runnable class model.

      Attachments

        Issue Links

          Activity

            People

              holyfoot Alexey Botchkov
              holyfoot Alexey Botchkov
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.