query

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DeleteExpiredCompletedTasks = `
	DELETE FROM backlite_tasks_completed
	WHERE
	    expires_at IS NOT NULL
		AND expires_at <= ?
`
View Source
const DeleteTask = `
	DELETE FROM backlite_tasks
	WHERE id = ?
`
View Source
const InsertCompletedTask = `` /* 189-byte string literal not displayed */
View Source
const InsertTask = `
	INSERT INTO backlite_tasks 
	    (id, created_at, queue, task, wait_until)
	VALUES (?, ?, ?, ?, ?)
`
View Source
const SelectScheduledTasks = `` /* 226-byte string literal not displayed */
View Source
const TaskFailed = `
	UPDATE backlite_tasks
	SET 
	    claimed_at = NULL, 
	    wait_until = ?,
	    last_executed_at = ?
	WHERE id = ?
`

Variables

View Source
var Schema string

Functions

func ClaimTasks

func ClaimTasks(count int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL