Documentation
Preparing search index...
@saltcorn/admin-models
models/snapshot
export=
Class export=
Index
Constructors
constructor
Properties
created
hash
id?
name?
pack?
Methods
restore_
entity
entity_
history
find
find
One
latest
take_
if_
changed
Constructors
constructor
new
"export="
(
o
:
SnapshotCfg
|
export=
)
:
export=
Library constructor
Parameters
o
:
SnapshotCfg
|
export=
Returns
export=
Properties
created
created
:
Date
hash
hash
:
string
Optional
id
id
?:
number
Optional
name
name
?:
string
Optional
pack
pack
?:
Pack
Methods
restore_
entity
restore_entity
(
type
:
string
,
name
:
string
)
:
Promise
<
undefined
>
Parameters
type
:
string
name
:
string
Returns
Promise
<
undefined
>
Static
entity_
history
entity_history
(
type
:
string
,
name
:
string
)
:
Promise
<
export=
[]
>
Parameters
type
:
string
name
:
string
Returns
Promise
<
export=
[]
>
Static
find
find
(
where
:
Where
,
selectopts
?:
SelectOptions
)
:
Promise
<
export=
[]
>
Parameters
where
:
Where
Optional
selectopts
:
SelectOptions
Returns
Promise
<
export=
[]
>
Static
find
One
findOne
(
where
:
Where
)
:
Promise
<
null
|
export=
>
Parameters
where
:
Where
Returns
Promise
<
null
|
export=
>
Static
latest
latest
()
:
Promise
<
null
|
export=
>
Returns
Promise
<
null
|
export=
>
Static
take_
if_
changed
take_if_changed
(
name
?:
string
)
:
Promise
<
boolean
>
Parameters
Optional
name
:
string
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
created
hash
id
name
pack
Methods
restore_
entity
entity_
history
find
find
One
latest
take_
if_
changed
Documentation
Loading...
Library constructor