store

package
v0.0.0-...-524d49d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// POSITIVE is a constant for positive sentiment.
	POSITIVE = "p"
	// NEGATIVE is a constant for negative sentiment.
	NEGATIVE = "n"
	// NEUTRAL is a constant for neutral sentiment.
	NEUTRAL = "u"
)

Functions

This section is empty.

Types

type Store

type Store struct {
	DB      *sql.DB
	Queries *store_queries.Queries
}

Store is a wrapper around the database connection.

func NewStore

func NewStore(connectionString string) (*Store, error)

NewStore creates a new store.

func (*Store) Close

func (s *Store) Close() error

Close closes the database connection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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