@sideloop/core
Preparing search index...
RecurringTask
Class RecurringTask
Hierarchy (
View Summary
)
ModelShape
<
RecurringTasksTable
,
this
>
RecurringTask
Index
Constructors
constructor
Properties
table
Methods
attr
attributes
For
Upsert
attrs
destroy
enqueue
reload
transaction
update
all
count
create
create
All
create
Or
Update
All
create
Unique
destroy
find
All
find
By
Id
find
By
Id
Or
Throw
find
One
find
One
Or
Throw
last
transaction
update
All
wrap
Constructors
constructor
new
RecurringTask
(
attrs
:
{
arguments
:
SuperJSONResult
;
className
:
null
|
string
;
createdAt
:
Date
;
description
:
null
|
string
;
id
:
number
;
key
:
string
;
priority
:
null
|
number
;
queueName
:
null
|
string
;
schedule
:
string
;
static
:
boolean
;
updatedAt
:
Date
;
}
,
)
:
RecurringTask
Parameters
attrs
:
{
arguments
:
SuperJSONResult
;
className
:
null
|
string
;
createdAt
:
Date
;
description
:
null
|
string
;
id
:
number
;
key
:
string
;
priority
:
null
|
number
;
queueName
:
null
|
string
;
schedule
:
string
;
static
:
boolean
;
updatedAt
:
Date
;
}
Returns
RecurringTask
Properties
Static
table
table
:
"sideloop_recurring_tasks"
= tables.recurringTasks
Methods
attr
attr
<
K
extends
NonNeverSelectKeys
<
RecurringTasksTable
>
>
(
name
:
K
,
)
:
{
arguments
:
SuperJSONResult
;
className
:
null
|
string
;
createdAt
:
Date
;
description
:
null
|
string
;
id
:
number
;
key
:
string
;
priority
:
null
|
number
;
queueName
:
null
|
string
;
schedule
:
string
;
static
:
boolean
;
updatedAt
:
Date
;
}
[
K
]
Type Parameters
K
extends
NonNeverSelectKeys
<
RecurringTasksTable
>
Parameters
name
:
K
Returns
{
arguments
:
SuperJSONResult
;
className
:
null
|
string
;
createdAt
:
Date
;
description
:
null
|
string
;
id
:
number
;
key
:
string
;
priority
:
null
|
number
;
queueName
:
null
|
string
;
schedule
:
string
;
static
:
boolean
;
updatedAt
:
Date
;
}
[
K
]
attributes
For
Upsert
attributesForUpsert
()
:
{
arguments
:
string
;
className
:
null
|
string
;
description
:
null
|
string
;
key
:
string
;
priority
:
null
|
number
;
queueName
:
null
|
string
;
schedule
:
string
;
static
:
boolean
;
updatedAt
:
string
;
}
Returns
{
arguments
:
string
;
className
:
null
|
string
;
description
:
null
|
string
;
key
:
string
;
priority
:
null
|
number
;
queueName
:
null
|
string
;
schedule
:
string
;
static
:
boolean
;
updatedAt
:
string
;
}
attrs
attrs
()
:
{
arguments
:
SuperJSONResult
;
className
:
null
|
string
;
createdAt
:
Date
;
description
:
null
|
string
;
id
:
number
;
key
:
string
;
priority
:
null
|
number
;
queueName
:
null
|
string
;
schedule
:
string
;
static
:
boolean
;
updatedAt
:
Date
;
}
Returns
{
arguments
:
SuperJSONResult
;
className
:
null
|
string
;
createdAt
:
Date
;
description
:
null
|
string
;
id
:
number
;
key
:
string
;
priority
:
null
|
number
;
queueName
:
null
|
string
;
schedule
:
string
;
static
:
boolean
;
updatedAt
:
Date
;
}
destroy
destroy
()
:
Promise
<
void
>
Returns
Promise
<
void
>
enqueue
enqueue
(
at
:
Date
)
:
Promise
<
void
>
Parameters
at
:
Date
Returns
Promise
<
void
>
reload
reload
()
:
Promise
<
RecurringTask
>
Returns
Promise
<
RecurringTask
>
transaction
transaction
(
cb
:
(
tx
:
Transaction
<
Database
>
)
=>
Promise
<
unknown
>
,
)
:
Promise
<
unknown
>
Parameters
cb
:
(
tx
:
Transaction
<
Database
>
)
=>
Promise
<
unknown
>
Returns
Promise
<
unknown
>
update
update
(
attrs
:
{
arguments
?:
string
;
className
?:
null
|
string
;
createdAt
?:
Date
;
description
?:
null
|
string
;
id
?:
number
;
key
?:
string
;
priority
?:
null
|
number
;
queueName
?:
null
|
string
;
schedule
?:
string
;
static
?:
boolean
;
updatedAt
?:
string
;
}
,
)
:
Promise
<
void
>
Parameters
attrs
:
{
arguments
?:
string
;
className
?:
null
|
string
;
createdAt
?:
Date
;
description
?:
null
|
string
;
id
?:
number
;
key
?:
string
;
priority
?:
null
|
number
;
queueName
?:
null
|
string
;
schedule
?:
string
;
static
?:
boolean
;
updatedAt
?:
string
;
}
Returns
Promise
<
void
>
Static
all
all
()
:
Promise
<
RecurringTask
[]
>
Returns
Promise
<
RecurringTask
[]
>
Static
count
count
()
:
Promise
<
number
>
Returns
Promise
<
number
>
Static
create
create
(
attrs
:
{
arguments
:
string
;
key
:
string
;
schedule
:
string
}
&
{
className
?:
null
|
string
;
createdAt
?:
Date
;
description
?:
null
|
string
;
id
?:
number
;
priority
?:
null
|
number
;
queueName
?:
null
|
string
;
static
?:
boolean
;
updatedAt
?:
string
;
}
,
options
?:
{
ignoreConflict
:
|
NonNullableInsertKeys
<
RecurringTasksTable
>
|
NullableInsertKeys
<
RecurringTasksTable
>
;
}
,
)
:
Promise
<
RecurringTask
>
Parameters
attrs
:
{
arguments
:
string
;
key
:
string
;
schedule
:
string
}
&
{
className
?:
null
|
string
;
createdAt
?:
Date
;
description
?:
null
|
string
;
id
?:
number
;
priority
?:
null
|
number
;
queueName
?:
null
|
string
;
static
?:
boolean
;
updatedAt
?:
string
;
}
Optional
options
:
{
ignoreConflict
:
|
NonNullableInsertKeys
<
RecurringTasksTable
>
|
NullableInsertKeys
<
RecurringTasksTable
>
;
}
Returns
Promise
<
RecurringTask
>
Static
create
All
createAll
(
attrs
:
(
{
arguments
:
string
;
key
:
string
;
schedule
:
string
}
&
{
className
?:
null
|
string
;
createdAt
?:
Date
;
description
?:
null
|
string
;
id
?:
number
;
priority
?:
null
|
number
;
queueName
?:
null
|
string
;
static
?:
boolean
;
updatedAt
?:
string
;
}
)
[]
,
)
:
Promise
<
RecurringTask
[]
>
Parameters
attrs
: (
{
arguments
:
string
;
key
:
string
;
schedule
:
string
}
&
{
className
?:
null
|
string
;
createdAt
?:
Date
;
description
?:
null
|
string
;
id
?:
number
;
priority
?:
null
|
number
;
queueName
?:
null
|
string
;
static
?:
boolean
;
updatedAt
?:
string
;
}
)
[]
Returns
Promise
<
RecurringTask
[]
>
Static
create
Or
Update
All
createOrUpdateAll
(
tasks
:
RecurringTask
[]
)
:
Promise
<
void
>
Parameters
tasks
:
RecurringTask
[]
Returns
Promise
<
void
>
Static
create
Unique
createUnique
(
attrs
:
{
arguments
:
string
;
key
:
string
;
schedule
:
string
}
&
{
className
?:
null
|
string
;
createdAt
?:
Date
;
description
?:
null
|
string
;
id
?:
number
;
priority
?:
null
|
number
;
queueName
?:
null
|
string
;
static
?:
boolean
;
updatedAt
?:
string
;
}
,
uniqueBy
:
|
NonNullableInsertKeys
<
RecurringTasksTable
>
|
NullableInsertKeys
<
RecurringTasksTable
>
,
)
:
Promise
<
null
|
RecurringTask
>
Parameters
attrs
:
{
arguments
:
string
;
key
:
string
;
schedule
:
string
}
&
{
className
?:
null
|
string
;
createdAt
?:
Date
;
description
?:
null
|
string
;
id
?:
number
;
priority
?:
null
|
number
;
queueName
?:
null
|
string
;
static
?:
boolean
;
updatedAt
?:
string
;
}
uniqueBy
:
|
NonNullableInsertKeys
<
RecurringTasksTable
>
|
NullableInsertKeys
<
RecurringTasksTable
>
Returns
Promise
<
null
|
RecurringTask
>
Static
destroy
destroy
(
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
)
:
Promise
<
number
>
Parameters
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
Returns
Promise
<
number
>
Static
find
All
findAll
(
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
)
:
Promise
<
RecurringTask
[]
>
Parameters
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
Returns
Promise
<
RecurringTask
[]
>
Static
find
By
Id
findById
(
id
:
number
)
:
Promise
<
null
|
RecurringTask
>
Parameters
id
:
number
Returns
Promise
<
null
|
RecurringTask
>
Static
find
By
Id
Or
Throw
findByIdOrThrow
(
id
:
number
)
:
Promise
<
RecurringTask
>
Parameters
id
:
number
Returns
Promise
<
RecurringTask
>
Static
find
One
findOne
(
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
,
)
:
Promise
<
null
|
RecurringTask
>
Parameters
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
Returns
Promise
<
null
|
RecurringTask
>
Static
find
One
Or
Throw
findOneOrThrow
(
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
,
)
:
Promise
<
RecurringTask
>
Parameters
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
Returns
Promise
<
RecurringTask
>
Static
last
last
()
:
Promise
<
null
|
RecurringTask
>
Returns
Promise
<
null
|
RecurringTask
>
last
(
limit
:
1
)
:
Promise
<
null
|
RecurringTask
>
Parameters
limit
:
1
Returns
Promise
<
null
|
RecurringTask
>
last
(
limit
:
number
)
:
Promise
<
RecurringTask
[]
>
Parameters
limit
:
number
Returns
Promise
<
RecurringTask
[]
>
Static
transaction
transaction
<
T
>
(
cb
:
(
tx
:
Transaction
<
Database
>
)
=>
Promise
<
T
>
)
:
Promise
<
T
>
Type Parameters
T
Parameters
cb
:
(
tx
:
Transaction
<
Database
>
)
=>
Promise
<
T
>
Returns
Promise
<
T
>
Static
update
All
updateAll
(
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
)
:
Promise
<
number
>
Parameters
cb
:
(
db
:
Kysely
<
Database
>
)
=>
CompiledQuery
Returns
Promise
<
number
>
Static
wrap
wrap
(
task
:
RecurringTaskAttributes
|
RecurringTask
)
:
RecurringTask
Parameters
task
:
RecurringTaskAttributes
|
RecurringTask
Returns
RecurringTask
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
table
Methods
attr
attributes
For
Upsert
attrs
destroy
enqueue
reload
transaction
update
all
count
create
create
All
create
Or
Update
All
create
Unique
destroy
find
All
find
By
Id
find
By
Id
Or
Throw
find
One
find
One
Or
Throw
last
transaction
update
All
wrap
@sideloop/core
Loading...