postgres

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDatabase = errors.New("postgres search database invalid")
View Source
var (
	ErrInvalidSearchEntity = errors.New("invalid search entity")
)

Functions

This section is empty.

Types

type Client

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

func New

func New(db database.Database) (*Client, error)

func (*Client) Delete

func (c *Client) Delete(entityName, id string) error

Delete is a no-op as with postgres we don't have to delete from an index.

func (*Client) Search

func (c *Client) Search(entity interface{}, query string, limit, offset int) ([]interface{}, error)

func (*Client) SearchWithPagination

func (c *Client) SearchWithPagination(entity interface{}, query string, limit, offset int) ([]interface{}, int, error)

func (*Client) Update

func (c *Client) Update(id string, data interface{}) error

Update is a no-op as with postgres we don't have to actually update any index

Jump to

Keyboard shortcuts

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