Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇

497 B
Raw Blame
# ===================
# ©AngelaMos | 2026
# persistence.cr
# ===================

require "./repos"

module CRE::Persistence
  abstract class Persistence
    abstract def credentials : CredentialsRepo
    abstract def versions : VersionsRepo
    abstract def rotations : RotationsRepo
    abstract def audit : AuditRepo

    abstract def transaction(&block : ->)
    abstract def with_advisory_lock(key : Int64, &block : ->)
    abstract def migrate! : Nil
    abstract def close : Nil
  end
end