sql

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyID

type EmptyID struct {
	AnimeID   int64 `gorm:"primaryKey"`
	CreatedAt time.Time
}

EmptyID is empty_id database model.

type SQL

type SQL struct {
	// contains filtered or unexported fields
}

SQL contains functions for empty_id sql database.

func New

func New(db *gorm.DB) *SQL

New to create new empty_id database.

func (*SQL) Create

func (sql *SQL) Create(ctx context.Context, id int64) (int, error)

Create to create empty id.

func (*SQL) Delete

func (sql *SQL) Delete(ctx context.Context, id int64) (int, error)

Delete to delete id from empty id.

func (*SQL) Get

func (sql *SQL) Get(ctx context.Context, id int64) (int64, int, error)

Get to get empty id.

func (*SQL) GetIDs

func (sql *SQL) GetIDs(ctx context.Context) ([]int64, int, error)

GetIDs to get all ids.

Jump to

Keyboard shortcuts

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