Skip to content

move UUID from PHP to database native #453

@arhimede

Description

@arhimede

Feature Request

Q A
New Feature yes
RFC no
BC Break yes

Summary

What if we move the generating of the UUID from code (PHP) to database ?
that way we can reduce the number of dependencies

in mariadb 11.4 was introduced UUD as generic data type
in mariadb 11.8 there are already , UUID, UUIDv4 and UUIDv7

we may want to allow the developer to choose between UUID version ?

MariaDB [(none)]> SELECT UUID(),UUID_v4(),UUID_v7()\G
*************************** 1. row ***************************
UUID(): f0aecde0-bbc6-11f0-8a5e-00155d3a3010
UUID_v4(): 35cbfd00-876e-4679-a2b1-5d0de3209922
UUID_v7(): 019a5dec-4457-7334-bd3e-6bfeae6b736b

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions