libsql

package
v0.0.0-...-b204384 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 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 Database

type Database interface {
	GetItemByID(id int) (string, error)
	Close() error
}

func Get

func Get() Database

Get returns singleton DB instance (implements Database)

type SQLDB

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

func (*SQLDB) Close

func (d *SQLDB) Close() error

func (*SQLDB) GetItemByID

func (d *SQLDB) GetItemByID(id int) (string, error)

Jump to

Keyboard shortcuts

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