server

package
v0.0.0-...-f25badd Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedSqliteOGServer
	Manager *connections.Manager
}

func New

func New(manager *connections.Manager) *Server

func (*Server) Callback

func (s *Server) Callback(cbs pb.SqliteOG_CallbackServer) error

func (*Server) Close

func (s *Server) Close(ctx context.Context, in *pb.ConnectionId) (*pb.Empty, error)

func (*Server) Connection

func (s *Server) Connection(ctx context.Context, in *pb.ConnectionRequest) (*pb.ConnectionId, error)

func (*Server) Execute

func (s *Server) Execute(ctx context.Context, in *pb.Statement) (*pb.ExecuteResult, error)

func (*Server) ExecuteOrQuery

func (s *Server) ExecuteOrQuery(ctx context.Context, in *pb.Statement) (*pb.ExecuteOrQueryResult, error)

func (*Server) IsValid

func (s *Server) IsValid(ctx context.Context, in *pb.ConnectionId) (*pb.Empty, error)

func (*Server) Ping

func (s *Server) Ping(ctx context.Context, _ *pb.Empty) (*pb.Empty, error)

func (*Server) Query

func (s *Server) Query(ctx context.Context, in *pb.Statement) (*pb.QueryResult, error)

func (*Server) ResetSession

func (s *Server) ResetSession(ctx context.Context, in *pb.ConnectionId) (*pb.ConnectionId, error)

Jump to

Keyboard shortcuts

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