bbolt

package
v0.0.0-...-26b89f5 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BBolt

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

BBolt is a bbolt database

func New

func New(path string) *BBolt

New creates a new bbolt database

func (*BBolt) BucketCreate

func (b *BBolt) BucketCreate(ctx context.Context, name string) error

func (*BBolt) ItemQuestByItemID

func (b *BBolt) ItemQuestByItemID(ctx context.Context, itemID int64) (*model.ItemQuest, error)

func (*BBolt) ItemQuestReplace

func (b *BBolt) ItemQuestReplace(ctx context.Context, itemID int64, itemQuest *model.ItemQuest) error

func (*BBolt) ItemQuestTruncate

func (b *BBolt) ItemQuestTruncate(ctx context.Context) error

func (*BBolt) ItemRecipeByItemID

func (b *BBolt) ItemRecipeByItemID(ctx context.Context, itemID int64) (*model.ItemRecipe, error)

func (*BBolt) ItemRecipeReplace

func (b *BBolt) ItemRecipeReplace(ctx context.Context, itemID int64, itemRecipe *model.ItemRecipe) error

func (*BBolt) ItemRecipeTruncate

func (b *BBolt) ItemRecipeTruncate(ctx context.Context) error

func (*BBolt) NpcQuestByNpcID

func (b *BBolt) NpcQuestByNpcID(ctx context.Context, npcID int64) (*model.NpcQuest, error)

func (*BBolt) NpcQuestReplace

func (b *BBolt) NpcQuestReplace(ctx context.Context, npcID int64, npcQuest *model.NpcQuest) error

func (*BBolt) NpcQuestTruncate

func (b *BBolt) NpcQuestTruncate(ctx context.Context) error

func (*BBolt) Open

func (b *BBolt) Open() (*bolt.DB, error)

Open should rarely be used, if you must be sure to close the database

func (*BBolt) QuestByQuestID

func (b *BBolt) QuestByQuestID(ctx context.Context, questID int64) (*model.Quest, error)

func (*BBolt) QuestNextID

func (b *BBolt) QuestNextID(ctx context.Context) (int64, error)

func (*BBolt) QuestReplace

func (b *BBolt) QuestReplace(ctx context.Context, questID int64, quest *model.Quest) error

func (*BBolt) QuestSearchByName

func (b *BBolt) QuestSearchByName(ctx context.Context, name string) ([]*model.Quest, error)

func (*BBolt) QuestTruncate

func (b *BBolt) QuestTruncate(ctx context.Context) error

func (*BBolt) QuestsAll

func (b *BBolt) QuestsAll(ctx context.Context) (map[int64]*model.Quest, error)

Jump to

Keyboard shortcuts

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