crud

package
v0.0.1-78 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSetGet

func CheckSetGet(t *checks.T)

CheckSetGet confirms that the SDK can perform Set and Get operations appropriately.

Should be implemented as:

@CavesTest('core/SetGet')
@CavesRequireFeature('3replicas')
function testCoreSetGet(t *TestCase) {
	collection := t.Collection()

	testDoc := {
		foo: 'hello',
		bar: true,
	}

	await collection.upsert('test-doc', testDoc)

	doc := await collection.get('test-doc')
	assert.deepEqual(doc.content, testDoc)
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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