sqlite

package
v2.0.0-...-8a7f49b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: AGPL-3.0-or-later Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func New

func New(path string, optimizeForLitestream bool) Store

func (Store) CountUsers

func (s Store) CountUsers() (uint, error)

func (Store) DeleteComment

func (s Store) DeleteComment(cid screenjournal.CommentID) error

func (Store) DeleteReview

func (s Store) DeleteReview(id screenjournal.ReviewID) error

func (Store) DeleteSignupInvitation

func (s Store) DeleteSignupInvitation(code screenjournal.InviteCode) error

func (Store) InsertComment

func (Store) InsertMovie

func (s Store) InsertMovie(m screenjournal.Movie) (screenjournal.MovieID, error)

func (Store) InsertReview

func (s Store) InsertReview(r screenjournal.Review) (screenjournal.ReviewID, error)

func (Store) InsertSignupInvitation

func (s Store) InsertSignupInvitation(invite screenjournal.SignupInvitation) error

func (Store) InsertUser

func (s Store) InsertUser(user screenjournal.User) error

func (Store) ReadComment

func (Store) ReadCommentSubscribers

func (s Store) ReadCommentSubscribers() ([]screenjournal.EmailSubscriber, error)

func (Store) ReadComments

func (s Store) ReadComments(rid screenjournal.ReviewID) ([]screenjournal.ReviewComment, error)

func (Store) ReadMovie

func (s Store) ReadMovie(id screenjournal.MovieID) (screenjournal.Movie, error)

func (Store) ReadMovieByTmdbID

func (s Store) ReadMovieByTmdbID(tmdbID screenjournal.TmdbID) (screenjournal.Movie, error)

func (Store) ReadNotificationPreferences

func (s Store) ReadNotificationPreferences(username screenjournal.Username) (screenjournal.NotificationPreferences, error)

func (Store) ReadReview

func (s Store) ReadReview(id screenjournal.ReviewID) (screenjournal.Review, error)

func (Store) ReadReviewSubscribers

func (s Store) ReadReviewSubscribers() ([]screenjournal.EmailSubscriber, error)

func (Store) ReadReviews

func (s Store) ReadReviews(opts ...store.ReadReviewsOption) ([]screenjournal.Review, error)

func (Store) ReadSignupInvitation

func (s Store) ReadSignupInvitation(code screenjournal.InviteCode) (screenjournal.SignupInvitation, error)

func (Store) ReadSignupInvitations

func (s Store) ReadSignupInvitations() ([]screenjournal.SignupInvitation, error)

func (Store) ReadUser

func (s Store) ReadUser(username screenjournal.Username) (screenjournal.User, error)

func (Store) ReadUsers

func (s Store) ReadUsers() ([]screenjournal.User, error)

func (Store) UpdateComment

func (s Store) UpdateComment(rc screenjournal.ReviewComment) error

func (Store) UpdateMovie

func (s Store) UpdateMovie(m screenjournal.Movie) error

func (Store) UpdateNotificationPreferences

func (s Store) UpdateNotificationPreferences(username screenjournal.Username, prefs screenjournal.NotificationPreferences) error

func (Store) UpdateReview

func (s Store) UpdateReview(r screenjournal.Review) error

func (Store) UpdateUserPassword

func (s Store) UpdateUserPassword(username screenjournal.Username, newPasswordHash screenjournal.PasswordHash) error

Jump to

Keyboard shortcuts

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