PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/g17khqpukees4237dtn3astzapmp462vjhsz6st4/datastore

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
datastore
Namespace
g17khqpukees4237dtn3astzapmp462vjhsz6st4
Files
11 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/g17khqpukees4237dtn3astzapmp462vjhsz6st4/datastore
gno
0.9

Files (11)

  • README.mdmarkdown
  • gnomod.tomltoml
  • datastore.gnogno
  • index.gnogno
  • query_options.gnogno
  • query.gnogno
  • record.gnogno
  • schema_options.gnogno
  • schema.gnogno
  • storage_options.gnogno
  • storage.gnogno
  • query.gnogno
    1package datastore23import (4	"gno.land/p/moul/collection/v0"5)67var defaultQuery = Query{indexName: collection.IDIndex}89// Query contains arguments for querying a storage.10type Query struct {11	offset    int12	size      int13	indexName string14	indexKey  string15}1617// Offset returns the position of the first record to return.18// The minimum offset value is 0.19func (q Query) Offset() int {20	return q.offset21}2223// Size returns the maximum number of records a query returns.24func (q Query) Size() int {25	return q.size26}2728// IndexName returns the name of the storage index being used for the query.29func (q Query) IndexName() string {30	return q.indexName31}3233// IndexKey return the index key value to locate the records.34// An empty string is returned when all indexed records match the query.35func (q Query) IndexKey() string {36	return q.indexKey37}3839// IsEmpty checks if the query is empty.40// Empty queries return no records.41func (q Query) IsEmpty() bool {42	return q.indexName == ""43}44

    Functions

    not supported for pure packages by the node (vm/qfuncs)

    Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.