MySQL UDF Plugin for generating ULIDs
For Ubuntu.
$ sudo apt install libmysqlclient-dev
For macOS with homebrew
$ brew install mysql-connector-c
$ mkdir build && cd $_
$ cmake ../
$ make
$ mysql build && cd $_
$ cmake ../
$ make test
or
$ mysql build && cd $_
$ cmake ../
$ ./ulid-gtest
CREATE FUNCTION ulid RETURNS STRING SONAME 'ulid.so';
SELECT ULID();
Warning: If mysql client run with --binary-as-hex=1, Return string is represent as hex.