handler

package
v0.0.0-...-ab7124e Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db struct {
	Db *orm.Client `dix:""`
}

func (*Db) Count

func (e *Db) Count(ctx context.Context, req *db_pb.CountRequest) (*db_pb.CountResponse, error)

func (*Db) Create

func (e *Db) Create(ctx context.Context, req *db_pb.CreateRequest) (*db_pb.CreateResponse, error)

Call is a single request handler called via client.Call or the generated client code

func (*Db) Delete

func (e *Db) Delete(ctx context.Context, req *db_pb.DeleteRequest) (*db_pb.DeleteResponse, error)

func (*Db) DropTable

func (e *Db) DropTable(ctx context.Context, req *db_pb.DropTableRequest) (*db_pb.DropTableResponse, error)

func (*Db) Init

func (e *Db) Init()

func (*Db) ListTables

func (e *Db) ListTables(ctx context.Context, req *db_pb.ListTablesRequest) (*db_pb.ListTablesResponse, error)

func (*Db) Read

func (e *Db) Read(ctx context.Context, req *db_pb.ReadRequest) (*db_pb.ReadResponse, error)

func (*Db) RenameTable

func (e *Db) RenameTable(ctx context.Context, req *db_pb.RenameTableRequest) (*db_pb.RenameTableResponse, error)

func (*Db) Truncate

func (e *Db) Truncate(ctx context.Context, req *db_pb.TruncateRequest) (*db_pb.TruncateResponse, error)

func (*Db) Update

func (e *Db) Update(ctx context.Context, req *db_pb.UpdateRequest) (*db_pb.UpdateResponse, error)

type Query

type Query struct {
	Field string
	Op    int
	Value interface{}
}

func Parse

func Parse(q string) ([]Query, error)

type Record

type Record struct {
	ID   string
	Data datatypes.JSON `json:"data"`

	CreatedAt time.Time
	UpdatedAt time.Time
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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