Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

LazULID

Universally Unique Lexicographically Sortable Identifier implementation for Lazarus(Object Pascal)

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

LazULID

logo.png Universally Unique Lexicographically Sortable Identifier implementation for Lazarus(Object Pascal)

Why ULID?

  • 128-bit compatibility with UUID
    1. 1e+24 unique ULIDs per millisecond
  • Lexicographically sortable!
  • Canonically encoded as a 26 character string, as opposed to the 36 character UUID
  • Uses Crockford's base32 for better efficiency and readability (5 bits per character)
  • Case insensitive
  • No special characters (URL safe)
  • Is faster than CreateGUID

For more information, check out ULID's README.

⚙️ Installation

Installation is done using the boss install command:

bash
boss install https://github.com/andre-djsystem/LazUlid

Manual installation

If you choose to install manually, simply add the following folders to your project, in Project > Project Options > Paths > Other unit files (-Fu) > Include file search path

pascal
../LazUlid/src

⚡️ Quickstart

uses LazULID

pascal
CreateULID; // 01J0XN68PC1W9ECMKDVHVKVPJH

Inspired in martinusso/ulid A Delphi/Object Pascal port of alizain/ulid.

⚠️ License

LazUlid is free and open-source library licensed under the MIT License.