DBIx::...erator(3pm)

ok so real talk, bestie: the header at the top of this thing literally reads DBIx::...erator(3pm) β€” the name got chopped mid-word and nobody fixed it 😭 β€” but it's filed under User Contributed Perl Documentation, and the page we're actually reading is for DBIx::SearchBuilder::SchemaGenerator. It's 3pm, it's a Perl module, it generates table schemas from DBIx::SearchBuilder records. That's the whole assignment. Let's get into it πŸ’…


new HANDLE πŸŽ€

Creates a brand-new DBIx::SearchBuilder::SchemaGenerator object, slay ✨. You pass it exactly one required argument: a DBIx::SearchBuilder::Handle. One. Singular. Don't be extra.

  • Adds a new model class to the SchemaGenerator πŸ¦‹. Your model is either an object belonging to a subclass of DBIx::SearchBuilder::Record, or just the name of such a subclass β€” and in that second case, AddModel will go ahead and instantiate an object of the subclass itself. Iconic delegation, honestly.
  • Heads up though: the model must define the instance methods Schema and Table. No methods, no model. Non-negotiable πŸ’€.
  • If it worked, you get back true 🌈. If it didn't, you get back a false Class::ReturnValue error instead β€” so like, check that return value, bestie, don't just assume.
  • Returns a list of SQL statements (as strings) for creating tables covering all the models that got added to the SchemaGenerator πŸ”₯.
  • Returns a string containing a sequence of SQL statements β€” same deal, tables for all the models added to the SchemaGenerator. One big glowy string instead of a list ✨.
  • Takes an object of a subclass of DBIx::SearchBuilder::Record, and hands you back a new DBIx::DBSchema::Table object that corresponds to the model 🫢.
  • Takes in a string and returns it back as a Class::ReturnValue error object. That's the whole thing πŸ’œ.

✨ NAME ✨

DBIx::SearchBuilder::SchemaGenerator β€” Generate table schemas from DBIx::SearchBuilder records. It's giving "I turn your records into tables," and it ate πŸ‘‘

🌸 SYNOPSIS 🌸

use DBIx::SearchBuilder::SchemaGenerator;

That's it. One line. Minimalist queen behavior πŸŽ€


and that's the page, bestie!! 🫢 no cap, every flag, every name, every return value β€” all here, all kept, nothing skipped, fr fr πŸ’–

Little sign-off because she deserves one 🌟: this is documented as User Contributed Perl Documentation, the footer stamps perl v5.40.1 with a date of 2026-05-07, and the filename doing the rounds down there is DBIx::...erator(3pm) β€” truncated again, we're all just living with it 😭. bye girlie, go generate some schemas πŸ¦‹πŸ’œπŸŒˆ

πŸ“¦ where this page comes from