postgres

package
v0.0.0-...-d7aef5a Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppStore

type AppStore struct {
	*sqlx.DB
}

func (*AppStore) App

func (s *AppStore) App(id uuid.UUID) (deeplinks.App, error)

func (*AppStore) Apps

func (s *AppStore) Apps() ([]deeplinks.App, error)

func (*AppStore) CreateApp

func (s *AppStore) CreateApp(d *deeplinks.App) error

func (*AppStore) DeleteApp

func (s *AppStore) DeleteApp(id uuid.UUID) error

func (*AppStore) UpdateApp

func (s *AppStore) UpdateApp(d *deeplinks.App) error

type DeepLinkStore

type DeepLinkStore struct {
	*sqlx.DB
}
func (s *DeepLinkStore) CreateDeepLink(d *deeplinks.DeepLink) error
func (s *DeepLinkStore) DeepLink(id uuid.UUID) (deeplinks.DeepLink, error)
func (s *DeepLinkStore) DeepLinks() ([]deeplinks.DeepLink, error)

func (*DeepLinkStore) DeepLinksByApp

func (s *DeepLinkStore) DeepLinksByApp(appID uuid.UUID) ([]deeplinks.DeepLink, error)
func (s *DeepLinkStore) DeleteDeepLink(id uuid.UUID) error
func (s *DeepLinkStore) UpdateDeepLink(d *deeplinks.DeepLink) error

type Store

type Store struct {
	*AppStore
	*DeepLinkStore
}

func NewStore

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

Jump to

Keyboard shortcuts

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