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

Custom types support through extensions

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Fix Version/s: N/A
    • Component/s: OTHER
    • Labels:
      None

      Description

      I propose to add support for extensions (written in C++) which define custom types. It can be implemented as follows. Extension translates custom type value (for example, fraction) to sequency of bytes in order to store it. Storage engine stores this sequncy of bytes (i.e. BLOB). Extension also supports the presentation of the value in a string form (in order to display it). Also extension can support operations for custom type (for example, arithmetical operations for fractions).
      I think that this approach will be better than definition of types using SQL (MariaDB doesn't support it) for nonstandard math types, such as multiprecision floating point numbers, fractions.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              serg Sergei Golubchik added a comment -

              Yes, it's a good idea. It is so good that we have even started working on it — see MDEV-4912

              Show
              serg Sergei Golubchik added a comment - Yes, it's a good idea. It is so good that we have even started working on it — see MDEV-4912

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  PAleksandrov Petr
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: