golazy.dev
–
golazy.dev
/
lazyfiles
/
jsonl
Index
|
Files
package jsonl ¶
import "golazy.dev/lazyfiles/jsonl"
Types ¶
type JSONLRepository ¶
JSONLRepository stores file metadata in an append-only JSONL log.
type JSONLRepository struct {
// contains filtered or unexported fields
}
func New ¶
New opens or creates an append-only JSONL repository at path.
func New(path string) (*JSONLRepository, error)
func (r *JSONLRepository) Delete ¶
func (r *JSONLRepository) Delete(ctx context.Context, fileID string, options ...any) ([]any, error)
func (r *JSONLRepository) Find ¶
func (r *JSONLRepository) Find(ctx context.Context, query lazyfiles.Query, options ...any) (lazyfiles.File, []lazyfiles.Location, []any, error)
func (r *JSONLRepository) Put ¶
func (r *JSONLRepository) Put(ctx context.Context, file lazyfiles.File, location lazyfiles.Location, options ...any) (lazyfiles.File, []any, error)
Package jsonl stores lazyfiles repository records in an append-only JSONL file.