sqlite

package
v0.0.0-...-6b267e2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sqlite provides concrete implementations of stores under sqlite

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDB

func OpenDB(path string) (*sql.DB, error)

Types

type Store

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

func NewStore

func NewStore(db *sql.DB) (*Store, error)

func (*Store) Create

func (s *Store) Create(ctx context.Context, request gameserver.Create) error

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, code string) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, code string) (gameserver.GameServer, error)

func (*Store) List

func (s *Store) List(ctx context.Context) ([]gameserver.GameServer, error)

func (*Store) Update

func (s *Store) Update(ctx context.Context, code string, request gameserver.Update) error

Jump to

Keyboard shortcuts

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