sql

package
v0.0.0-...-4d4b126 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func NewConnection

func NewConnection(host string, l stream.Logger) (*Connection, error)

type EventsQuery

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

func (EventsQuery) Limit

func (e EventsQuery) Limit(n int) EventsQuery

func (EventsQuery) String

func (e EventsQuery) String() string

type EventsReader

type EventsReader struct {
	*Connection
	// contains filtered or unexported fields
}

func NewEventsReader

func NewEventsReader(c *Connection, q Query) *EventsReader

func (*EventsReader) Read

func (r *EventsReader) Read(e Events) (n int, err error)

func (*EventsReader) ReadAt

func (r *EventsReader) ReadAt(e Events, pos int64) (n int, err error)

type EventsStore

type EventsStore struct {
	*Connection
}

func NewEventsStore

func NewEventsStore(host string, l Logger) (*EventsStore, error)

func (*EventsStore) ReadWriter

func (r *EventsStore) ReadWriter(s Sequence) ReadWriterAt

func (*EventsStore) Reader

func (r *EventsStore) Reader(q Query) Reader

func (*EventsStore) Write

func (r *EventsStore) Write(e Events) (n int, err error)

type EventsWriter

type EventsWriter struct {
	*Connection
	// contains filtered or unexported fields
}

func NewEventsWriter

func NewEventsWriter(c *Connection, id ...Sequence) *EventsWriter

func (*EventsWriter) Write

func (w *EventsWriter) Write(e Events) (n int, err error)

func (*EventsWriter) WriteAt

func (w *EventsWriter) WriteAt(ee Events, pos int64) (n int, err error)

type Table

type Table[E Entity] struct {
	*Connection
	// contains filtered or unexported fields
}

func NewTable

func NewTable[E Entity](c *Connection) (*Table[E], error)

func (*Table[E]) Delete

func (r *Table[E]) Delete(ee ...E) error

func (*Table[E]) One

func (r *Table[E]) One(e E) error

func (*Table[E]) Read

func (r *Table[E]) Read(ee []E, bytes []byte) error

func (*Table[E]) Update

func (r *Table[E]) Update(ee ...E) (err error)

Jump to

Keyboard shortcuts

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