testv1nidhi

package
v0.0.0-...-e254655 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestSchema = struct {
	Id       testId
	Title    testTitle
	SubTest  testSubTest
	SubTests testSubTests
	M        testM
}{}

TestSchema is the set of path selectors for the Test type.

Functions

func NewTestStore

func NewTestStore(
	ctx context.Context,
	db *sql.DB,
	opt nidhi.StoreOptions,
) (*nidhi.Store[v1.Test], error)

NewTestStore is a document store for Test

Types

type TestConj

type TestConj = nidhi.Conj[TestField]

TestConj is an alias for nidhi.Conj[TestField]

type TestField

type TestField interface {
	nidhi.Field
	// contains filtered or unexported methods
}

type TestQuery

type TestQuery = nidhi.Query[TestField]

TestQuery is an alias for nidhi.Query[TestField]

type TestUpdates

type TestUpdates struct {
	Title    *string            `json:"title,omitempty"`
	SubTest  **v1.SubTest       `json:"subTest,omitempty"`
	SubTests *[]*v1.SubTest     `json:"subTests,omitempty"`
	M        *map[string]string `json:"m,omitempty"`
}

TestUpdates is an updates type that can be passed to *nidhi.Store.Update and *nidhi.Store.UpdateMany

func (*TestUpdates) WriteJSON

func (u *TestUpdates) WriteJSON(w *_go.Stream)

Jump to

Keyboard shortcuts

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