internal

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineTableName

func DetermineTableName(prefix string, fileName string) string

DetermineTableName determines the table name to use for the queue. If the fileName is empty, we use a unique table name. Otherwise, we use the fileName as the table name.

func InitializeDB

func InitializeDB(fileName string) (*sql.DB, error)

func MakeNotifyChan

func MakeNotifyChan() chan struct{}

MakeNotifyChan creates a new channel with a buffer of 1. This is used to notify the queue that an item has been enqueued. I'm not sure if this is the best way to do this, but it works for now.

func PrepareDB

func PrepareDB(db *sql.DB, createTableQuery string, queries ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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