Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
link
(from :
Artifact
|
Int64
, to :
Artifact
|
Int64
, rel :
String
, data = nil) :
Link
Source
links_from
(artifact :
Artifact
|
Int64
, rel :
String
|
Nil
= nil) :
Array
(
Link
)
Source
links_to
(artifact :
Artifact
|
Int64
, rel :
String
|
Nil
= nil) :
Array
(
Link
)
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
unlink
(from :
Artifact
|
Int64
, to :
Artifact
|
Int64
, rel :
String
) :
Nil
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