Documentation
¶
Index ¶
- type Info
- type Lockbox
- func (lb *Lockbox) Close() error
- func (lb *Lockbox) Info() (*Info, error)
- func (lb *Lockbox) Query(ctx context.Context, query string, opts ...Option) (*QueryResult, error)
- func (lb *Lockbox) Read(ctx context.Context, opts ...Option) (arrow.Record, error)
- func (lb *Lockbox) Schema() *arrow.Schema
- func (lb *Lockbox) Write(ctx context.Context, record arrow.Record, opts ...Option) error
- type Option
- type Options
- type QueryResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
Version uint32 `json:"version"`
Schema *arrow.Schema `json:"-"`
CreatedAt interface{} `json:"createdAt"`
CreatedBy string `json:"createdBy"`
ModifiedAt interface{} `json:"modifiedAt"`
ModifiedBy string `json:"modifiedBy"`
BlockCount int `json:"blockCount"`
AccessCount int `json:"accessCount"`
}
Info represents information about a lockbox file
type Lockbox ¶
type Lockbox struct {
// contains filtered or unexported fields
}
Lockbox represents a lockbox file with high-level operations
func (*Lockbox) Query ¶
Query performs a simple query on the lockbox data This is a basic implementation that reads all data and applies simple filters
type Option ¶
type Option func(*Options)
Option is a functional option for lockbox operations
func WithColumns ¶
WithColumns sets the specific columns to operate on
func WithCreatedBy ¶
WithCreatedBy sets the creator name for lockbox operations
func WithPassword ¶
WithPassword sets the password for lockbox operations
type QueryResult ¶
type QueryResult struct {
// contains filtered or unexported fields
}
QueryResult represents the result of a query operation
func (*QueryResult) Next ¶
func (qr *QueryResult) Next() bool
Next advances to the next row in the result set
func (*QueryResult) Record ¶
func (qr *QueryResult) Record() arrow.Record
Record returns the current Arrow record
func (*QueryResult) Release ¶
func (qr *QueryResult) Release()
Release releases the resources associated with the query result
func (*QueryResult) Schema ¶
func (qr *QueryResult) Schema() *arrow.Schema
Schema returns the schema of the query result