SQL::Tr...dexField(3)

πŸ’– NAME πŸ’–

okay bestie, welcome to the SQL::Tr...dexField(3) page from User Contributed Perl Documentation 🫢

SQL::Translator::Schema::IndexField β€” the SQL::Translator index field object ✨


🌸 DESCRIPTION 🌸

SQL::Translator::Schema::IndexField is literally the index field object πŸ’…

Different databases allow for different options on index fields, and those options are supported through here. no cap 🧚


πŸ› οΈ METHODS πŸ› οΈ

🌱 new

Object constructor. iconic behavior, honestly πŸ‘‘

my $schema = SQL::Translator::Schema::IndexField->new;

πŸŽ€ name

The name of the index. The object stringifies to this. πŸͺž

In addition, you can simply pass a string to the constructor to only set this attribute. easy peasy ✨

πŸ¦‹ extra

All options for the field are stored under the extra hash. The constructor will collect them for you if passed in straight. 🧺

In addition, an accessor is provided for all supported options. very thoughtful, tbh πŸ’–

Currently supported options:

  • prefix_length β€” supported by MySQL. Indicates that only N characters of the column are indexed. πŸ“

πŸ‘‘ AUTHOR πŸ‘‘

Veesh Goldman <veesh@cpan.org>. πŸ’Œ


mwah πŸ’‹ β€” this page is from perl v5.42.0, dated 2024-12-12, and it lives at SQL::Tr...dexField(3). periodt 🌈

πŸ“¦ where this page comes from