postgresql

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2022 The Dapr Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQL

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

PostgreSQL state store.

func NewPostgreSQLStateStore

func NewPostgreSQLStateStore(logger logger.Logger) *PostgreSQL

NewPostgreSQLStateStore creates a new instance of PostgreSQL state store.

func (*PostgreSQL) BulkDelete

func (p *PostgreSQL) BulkDelete(req []state.DeleteRequest) error

BulkDelete removes multiple entries from the store.

func (*PostgreSQL) BulkGet added in v1.0.0

func (p *PostgreSQL) BulkGet(req []state.GetRequest) (bool, []state.BulkGetResponse, error)

BulkGet performs a bulks get operations.

func (*PostgreSQL) BulkSet

func (p *PostgreSQL) BulkSet(req []state.SetRequest) error

BulkSet adds/updates multiple entities on store.

func (*PostgreSQL) Close

func (p *PostgreSQL) Close() error

Close implements io.Closer.

func (*PostgreSQL) Delete

func (p *PostgreSQL) Delete(req *state.DeleteRequest) error

Delete removes an entity from the store.

func (*PostgreSQL) Features added in v1.1.1

func (p *PostgreSQL) Features() []state.Feature

Features returns the features available in this state store.

func (*PostgreSQL) Get

func (p *PostgreSQL) Get(req *state.GetRequest) (*state.GetResponse, error)

Get returns an entity from store.

func (*PostgreSQL) Init

func (p *PostgreSQL) Init(metadata state.Metadata) error

Init initializes the SQL server state store.

func (*PostgreSQL) Multi

func (p *PostgreSQL) Multi(request *state.TransactionalStateRequest) error

Multi handles multiple transactions. Implements TransactionalStore.

func (*PostgreSQL) Query added in v1.7.0

Query executes a query against store.

func (*PostgreSQL) Set

func (p *PostgreSQL) Set(req *state.SetRequest) error

Set adds/updates an entity on store.

type Query added in v1.7.0

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

func (*Query) Finalize added in v1.7.0

func (q *Query) Finalize(filters string, qq *query.Query) error

func (*Query) VisitAND added in v1.7.0

func (q *Query) VisitAND(f *query.AND) (string, error)

func (*Query) VisitEQ added in v1.7.0

func (q *Query) VisitEQ(f *query.EQ) (string, error)

func (*Query) VisitIN added in v1.7.0

func (q *Query) VisitIN(f *query.IN) (string, error)

func (*Query) VisitOR added in v1.7.0

func (q *Query) VisitOR(f *query.OR) (string, error)

Jump to

Keyboard shortcuts

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