class

Artistry::Transaction

Inherits Reference < Object

Constructors

new(tx : DB::Transaction)
Source

Instance methods

commit
Source
create(plugin : String, kind : String, data) : Artifact
Source
create(kind_or_code : String, data) : Artifact
Source
find(id : Int64) : Artifact | Nil
Source
find(slug : String) : Artifact | Nil
Source
rollback
Source
sync_tags(artifact : Artifact | Int64, names : Array(String)) : Nil
Source
tag(artifact : Artifact | Int64, name : String) : Nil
Source
tags_for(artifact : Artifact | Int64) : Array(Tag)
Source
untag(artifact : Artifact | Int64, name : String) : Nil
Source
where(code : String, include_superseded : Bool = false) : Array(Artifact)
Source
where(code : String, include_superseded : Bool = false, **conditions) : Array(Artifact)
Source