sqlh

package
v0.49.5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 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 SQLHints

type SQLHints struct {
	*sqlx.DB
	// contains filtered or unexported fields
}

func NewSQLHints

func NewSQLHints(db *sql.DB, driverName string) (SQLHints, error)

NewSQLHints takes an sqlx.DB connection (db) and a database type name (driverName ). driverName must be either "postgres" or "sqlite3" -- this is so we can slightly change the queries.

func (SQLHints) PrintScores

func (sh SQLHints) PrintScores()

func (SQLHints) Save

func (sh SQLHints) Save(pubkey string, relay string, key hints.HintKey, ts nostr.Timestamp)

func (SQLHints) TopN

func (sh SQLHints) TopN(pubkey string, n int) []string

Jump to

Keyboard shortcuts

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