SYMPA::DATABASEDESCRIPTION(3Sympa)
π NAME π
Sympa::DatabaseDescription β the whole definition of the core database structure, bestie. Like, the blueprint of every table. iconic
π¦ DESCRIPTION π¦
okay so this module is the one holding the structure of the database that the Sympa software uses. it keeps it. it protects it. main character energy fr fr. π
β¨ Functions β¨
πΈ full_db_struct ()
Function. Gives you back a hashref stuffed with the definitions of all the tables. every single one. no crumbs.
Each item in there has the name of the table as its key and the definition as its value, okay?
And each one of those definitions is itself a hashref, holding these keys:
fieldsβ bestie scroll down, it's right below. πdocβ a description of the table.orderβ TBD. (the devs are working on it okay leave them alone π)
So the fields item is a hashref that may contain these items:
structβ the column data types. the definitions are based on MySQL, and these are the types that get recognized:varchar(length)β text with length up to length. and length must be lower than2^16 - 2. math is math. πint(1)β boolean, so like1or0. yes/no. slay/no. β¨int(11)β Unix time. the classic.int(cols)β an integer with cols columns, value goes from-2^31to2^31 - 1.tinyintβ integer,-2^7to2^7 - 1. smol. πsmallintβ integer,-2^15to2^15 - 1.bigintβ integer,-2^63to2^63 - 1. big. huge. πdoubleβ IEEE floating point number, 8 bytes.enumβ keyword with length up to 20 o.textβ text with length up to 2000 o at minimum, but honestly 4000 o or longer is recommended. go bigger.
Note: on Sympa 6.2.36 or earlier, the required size was 500 o. yes we moved on. growth mindset. π§
longtextβ text with length up to2^32 - 4o.datetimeβ timestamp. Deprecated as of Sympa 6.2.25b.3. useint(11)(Unix time) instead, okay? don't come for me, I'm just the messenger. π₯mediumblobβ binary data with length up to2^24 - 3o.
docβ a description of the field.primaryβ if this is true, the primary key consists of this field. πnot_nullβ if this is true, a Null value is not allowed. and heads up, fields included in the primary key always don't allow Null value. it's giving strict. π
π db_struct ()
This function was OBSOLETED. rip to her, she was an icon. π
π not_null ()
Function. TBD.
π autoincrement ()
Function. TBD.
β primary ()
Function. TBD.
π SEE ALSO π
sympa_database(5), Sympa::DatabaseManager.
β¨ HISTORY β¨
Sympa::DatabaseDescription was introduced behind the veil on Sympa 6.1. then it began to be referred to overtly as a part of Sympa Database Manager (SDM) on Sympa 6.2. a whole glow-up arc, no cap. π¦
and that's the whole page bestie, written by version 6.2.80, dated 2026-10-19. mwah. πβ¨ππ«Ά
π¦ where this page comes from
- fedora 43: sympa-devel-doc 6.2.80-2.fc43 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- fedora 44: sympa-devel-doc 6.2.80-2.fc44 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms