App::S...revert(3pm)

πŸ’… App::Sqitch::Command::revert

okay bestie, so this is the Perl side of the revert command from Sqitch β€” the App::Sqitch::Command::revert module πŸ¦‹ it lives in the User Contributed Perl Documentation, and its whole vibe is reverting Sqitch changes from a database. yes, undoing. we love a lil time travel πŸ•°οΈβœ¨


🌸 Synopsis

my $cmd = App::Sqitch::Command::revert->new(%params);
$cmd->execute;

that's the whole flex, fr fr πŸ’–


✨ Description

bestie listen 🫢 if you actually wanna know how to use the revert command, you are in the WRONG place β€” you want to be reading sqitch-revert, okay? go go go πŸƒβ€β™€οΈ

but if you truly, deeply, no-cap need to know how the revert command works under the hood? then read on, bestie, because this is the behind-the-scenes lore πŸŽ€πŸ‘‘


πŸ’œ Interface

🧚 Class Methods

  • options
my @opts = App::Sqitch::Command::revert->options;

hands you back a list of Getopt::Long option specs β€” aka the receipts for all the command-line options the revert command supports πŸ’…

πŸ¦‹ Attributes

  • log_only β€” a boolean that says whether to log the deploy without actually running the scripts πŸ‘€ yes, fake it but log it.
  • lock_timeout β€” how many seconds to wait for an exclusive advisory lock on the target, but only for engines that support that feature (iykyk).
  • modified β€” boolean, revert to the change prior to the earliest change that has a revised deploy script πŸ”₯
  • no_prompt β€” boolean saying yay or nay to prompting the user to really truly go through with the revert. no prompting = main character energy.
  • prompt_accept β€” boolean for whether the default answer to the prompt (like, if the user just smashes Return) is to accept it or deny it πŸ’–
  • strict β€” boolean that decides whether or not a change to revert to is required. strict girlies stay strict.
  • target β€” the deployment target URI 🎯
  • to_change β€” the change to revert to 🌈

⭐ Instance Methods

  • execute
$revert->execute;

literally just executes the revert command. that's it. that's the method πŸ’€βœ¨


πŸ‘‘ See Also

  • sqitch-revert β€” the docs for the revert command in the Sqitch command-line client, aka where you should have started bestie 😭
  • sqitch β€” the Sqitch command-line client itself 🫢

🌈 Author

David E. Wheeler <david@justatheory.com> πŸ’Œ


πŸ’– License

Copyright (c) 2012-2026 David E. Wheeler, 2012-2021 iovation Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

⚠️ okay so that ALL CAPS part is not me being dramatic for the bit β€” that's the actual legal text, and it hits different: no warranty, none, zero, nada πŸ’€ copy it, ship it, and don't come for the authors if it breaks.

and that's the whole page bestie! this lil gem is perl v5.40.1, dated 2026-07-26. go forth and revert responsibly πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from