Feature Request: Adding UUID (Ordered) display transformer for binary data in table
See original GitHub issueThis is a feature request for DBeaver to allow displaying UUID in the Ordered form described here stored in an MySQL / MariaDB in a binary(16) field as IDs: https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/
DELIMITER //
CREATE DEFINER=`root`@`localhost` FUNCTION `ordered_uuid`(uuid BINARY(36))
RETURNS binary(16) DETERMINISTIC
RETURN UNHEX(CONCAT(SUBSTR(uuid, 15, 4),SUBSTR(uuid, 10, 4),SUBSTR(uuid, 1, 8),SUBSTR(uuid, 20, 4),SUBSTR(uuid, 25)));
//
DELIMITER ;
As far as my research went the existing UUID transformer in UUIDAttributeTransformer.java in realized as a plugin for DBeaver.
Currently using DBeaver 5.0.2 CE with MariaDB 10.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Inserting and selecting UUIDs as binary(16) - Stack Overflow
I realize binary and an UUID string doesn't look identical, but shouldn't the selected data at least be just as long? Otherwise how...
Read more >Pipelines - Hugging Face
These pipelines are objects that abstract most of the complex code from the library, offering a simple API dedicated to several tasks, including...
Read more >Hibernate ORM 5.2.18.Final User Guide - Red Hat on GitHub
For Hibernate mapping features not supported by JPA we will prefer Hibernate extension ... UUID#getLeastSignificantBits and stores that as BINARY data.
Read more >FME Transformers
Some formats incur extra overhead to store three-dimensional data; ... Features are added to the aggregate being built in the order they are ......
Read more >FME Transformer Reference Guide 2021 - Documentation
FME® contains over 500 transformers that perform different types of data ... Table View: Displays the Feature Information values that are exposed to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok. then let’s leave it as is for now. Thanks for contribution 😉
Basically, every DBMS that uses binary storage for UUID will benefit from the re-ordering of the bytes - especially if UUID-Type 1 is used.
There are a handful projects on github that do the same re-ordering: https://github.com/search?utf8=✓&q=ordered+uuid&type= so the percona article might became a standard 😉