KiokuD...rialIDs(3pm)
π KiokuD...rialIDs β the tea β
okay bestie, so this is a page from the User Contributed Perl Documentation, and it's filed under KiokuD...rialIDs(3pm). Yes the name is truncated, no we don't know why, it's giving cryptic queen energy π
. Anyway. Sit down, grab a boba, we're learning about serial IDs.
β¨ NAME β¨
KiokuDB::Role::UUIDs::SerialIDs β serial ID assignment based on a global counter. no cap, that's literally the whole vibe.
π¦ VERSION π¦
version 0.57
πΈ SYNOPSIS πΈ
okay so the way you use this is you set the flag before you load the module, like this:
# set before loading:
BEGIN { $KiokuDB::SERIAL_IDS = 1 }
use KiokuDB;
see how the BEGIN block comes first? that's not a suggestion bestie, that's the whole point. set it, then use it. order matters, periodt β¨
π DESCRIPTION π
so this role is an alternate ID generation role, and it is development only. read that again. development. only. π¨
its whole purpose is to make testing easier when your database gets created from scratch on every single run. because with this role, objects will typically get assigned the same IDs between runs, which makes everything way easier to follow. it's giving consistency, it's giving "wait why is this object always 1", it's giving π predictability π.
DO NOT use this role for storing actual real data. like, seriously. ID clashes are almost guaranteed to cause data loss. that's not a vibe, that's a tragedy π. this is a dev toy, not a production girlie.
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org>
π«Ά COPYRIGHT AND LICENSE π«Ά
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay that's the whole page, you ate that ππ
sign-off time: this was brought to you by perl v5.34.0, dated 2022-05-23 β and yes, the title up top still says KiokuD...rialIDs(3pm) because some things are just iconic and stay exactly as they are πβ bye bestie, hydrate and don't use serial IDs in prod π
π¦ where this page comes from
- debian bookworm: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libkiokudb-perl 0.57-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms