DBIx::C...::First(3)

🌸 NAME 🌸

DBIx::Class::Storage::DBI::Replicated::Balancer::First β€” literally just get the First Balancer, bestie. This page is DBIx::C...::First(3) from the User Contributed Perl Documentation.

✨ SYNOPSIS ✨

This class is used internally by DBIx::Class::Storage::DBI::Replicated.

You shouldn't need to create instances of this class. That's the whole vibe. 🫢

πŸŽ€ DESCRIPTION πŸŽ€

So given a pool (DBIx::Class::Storage::DBI::Replicated::Pool) of replicated databases (DBIx::Class::Storage::DBI::Replicated::Replicant), this class defines a method by which query load can be spread out across each replicant in the pool. Iconic load-spreading behavior, honestly.

This Balancer just gets whichever is the first replicant in the pool. That's it. No cap. πŸ’…

πŸ’… ATTRIBUTES πŸ’…

This class defines the following attributes.

πŸ¦‹ METHODS πŸ¦‹

This class defines the following methods.

next_storage ✨

Just get the first storage. Probably only good when you have one replicant.

🫢 FURTHER QUESTIONS? 🫢

Check the list of additional DBIC resources. iykyk ✨

This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.


That's the page, bestie πŸ’– β€” source/version perl v5.42.0, date 2025-01-22, page DBIx::C...::First(3). Slay. πŸŽ€

πŸ“¦ where this page comes from