Data::...::DBIC(3pm)

πŸ“¦
version 0.11 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ NAME ✨

Data::Stream::Bulk::DBIC β€” bestie, this is the lil' glow-up that lets you iterate your DBIx::Class resultsets with Data::Stream::Bulk πŸ’–

(it lives in the User Contributed Perl Documentation, manual page Data::...::DBIC(3pm), iykyk)


🌸 VERSION 🌸

version 0.11 πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

Data::Stream::Bulk::DBIC->new(
        resultset => scalar($schema->rs("Foo")->search(...))
);

πŸ’… DESCRIPTION πŸ’…

okay so picture this: you've got a DBIx::Class::ResultSet and you want it to play nice with the Data::Stream::Bulk api. That's literally it, that's the whole vibe. This class is the wrapper that makes it happen. 🫢

now, the tea: because DBIC's inflation overhead is fairly negligible compared to the overhead of just iterating through stuff, the author genuinely did not bother to actually make it bulk. Not me exposing the class like that 😭 but fr fr, it's fine.

and if DBIx::Class::Cursor ever supports n-at-a-time fetching at some point in the future β€” as opposed to the one-at-a-time or all-at-a-time situation we're in now β€” then this class will get updated to match. periodt. πŸ‘‘


πŸ’œ METHODS πŸ’œ

  • get_more β€” check Data::Stream::Bulk::DoneFlag for the deets. It returns a single row. In the future it should return more than one row, but rn it's giving one-at-a-time energy πŸ™ˆ

πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman <nothingmuch@woobling.org> πŸ’Œ


This software is copyright (c) 2012 by Yuval Kogman. ⭐

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. 🧚


signing off, my love β€” this was perl v5.32.0, dated 2021-01-01, and you just read Data::...::DBIC(3pm). go stream some rows, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from