Workflo...uenceId(3)

πŸ“¦
version 2.09 Β· 2 versions
, in fedora 44

πŸ’– Workflo...uenceId(3) β€” Workflow::Persister::DBI::SequenceId πŸ’–

okay bestie, settle in, we're reading a Perl manual page from the User Contributed Perl Documentation section (that's section 3, the library-calls girlies πŸŽ€), and honestly? it's a good one. short, sweet, does one job. main character energy, no notes.


✨ NAME ✨

Workflow::Persister::DBI::SequenceId β€” it's a Persister to fetch ID from a sequence, periodt. that's the whole vibe. πŸ’…


🌸 VERSION 🌸

this documentation describes version 2.09 of this package. she's giving established, she's giving maintained, we love to see it. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

here's how you actually use her, in your persister config:

 persister:
 - name: MyPersister
   workflow_sequence: wf_seq
   history_sequence: wf_history_seq
   ...

look at those sequence names just sitting there, being useful. iconic. ✨


πŸ’œ DESCRIPTION πŸ’œ

so this is the Implementation for DBI persister to fetch an ID value from a sequence. like, you've got a database, you've got a sequence, and you need the next id from it β€” this class is the one doing that errand for you. 🫢

🌈 Properties 🌈

these are the keys you feed her, and she will notice if you skip them (more on that in new below πŸ‘€):

  • sequence_name β€” the Name of the sequence to select the next id value from. that's the whole description. she picks from this one. simple as. πŸ’…
  • sequence_select β€” a "sprintf" template string with a single placeholder (%s) used to interpolate the sequence name. the resulting string is what gets used as the SQL statement to retrieve the next sequence value. so like, the template goes in, the sequence name gets slotted into that %s, and boom β€” SQL. πŸ”₯

⭐ ATTRIBUTES ⭐

  • log β€” contains the logger object associated with this instance. that's it, that's the attribute. she keeps a log bestie close. πŸ““

πŸ‘‘ METHODS πŸ‘‘

🧚 new ( \%params )

This method instantiates a class for retrieval of sequence ids from a DBI based persistance entity.

It takes a hashref containing keys matching the properties outlines in the section above β€” or it throws Workflow::Exceptions if these are not defined. so yeah, if you come empty-handed she is NOT doing it, bestie. 😭

Returns instantiated object upon success. slay. πŸ’–

πŸ¦‹ pre_fetch_id

Returns a unique sequence id from a database.

Takes a single parameter, a DBI database handle.

Returns a single value, a integer representing a sequence id from the provided database handle. yes, an actual real number. from actual real SQL. we love a fetch that delivers. πŸ“

🌸 post_fetch_id

This is a dummy method, use "pre_fetch_id".

like... she's there, she's polite, she does nothing. decorative. a little placeholder princess. πŸ™ˆ use pre_fetch_id instead, fr fr.


Copyright (c) 2003-2021 Chris Winters. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Please see the LICENSE.


🫢 AUTHORS 🫢

Please see Workflow. (group project energy β€” go check the main page for the full cast πŸ’œ)


okay that's the whole page!! and before you go β€” the footer said this is perl v5.42.0, dated 2026-01-17, so jot that down in your notes app. byeeee, go fetch some sequence ids responsibly πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from