https://github.com/lefred/mysql-component-uuid_v4
MySQL UUID v4 generator function
https://github.com/lefred/mysql-component-uuid_v4
Last synced: 6 months ago
JSON representation
MySQL UUID v4 generator function
- Host: GitHub
- URL: https://github.com/lefred/mysql-component-uuid_v4
- Owner: lefred
- License: gpl-2.0
- Created: 2022-09-09T09:45:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-23T19:44:25.000Z (over 2 years ago)
- Last Synced: 2024-12-29T21:27:13.818Z (over 1 year ago)
- Language: C++
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mysql-component-uuid_v4
Extending MySQL using the Component Infrastructure - Adding a UUID v4 generator user function.
```
MySQL > install component "file://component_uuid_v4";
Query OK, 0 rows affected (0.0005 sec)
MySQL > select uuid_v4();
+--------------------------------------+
| uuid_v4() |
+--------------------------------------+
| 87cff962-d54e-40a2-8c74-86630990fa65 |
+--------------------------------------+
1 row in set (0.0002 sec)
```
# Compilation notes
Since MySQL 8.3.0, boost is included in the source code (extra directory), but it's not a full
version, some modules are missing to compile this component.
You need to copy them first:
```
cp -r boost_1_77_0/boost/uuid/ mysql-%{version}/extra/boost/boost_1_77_0/boost/
cp -r boost_1_77_0/boost/tti/ mysql-%{version}/extra/boost/boost_1_77_0/boost/
cp -r boost_1_77_0/boost/io/ mysql-%{version}/extra/boost/boost_1_77_0/boost/
cp -r boost_1_77_0/boost/random/ mysql-%{version}/extra/boost/boost_1_77_0/boost/
cp boost_1_77_0/boost/random.hpp mysql-%{version}/extra/boost/boost_1_77_0/boost/
```