Categorygithub.com/thepkg/gcd
modulepackage
1.1.2
Repository: https://github.com/thepkg/gcd.git
Documentation: pkg.go.dev

# README

gcd (Google Cloud DataStore)

CircleCI Go Report Card godoc

Package gcd provides helpful functions to work with Google Cloud DataStore.

Installation

go get -u github.com/thepkg/gcd

Usage

import "github.com/thepkg/gcd"

ctx := appengine.NewContext(r)
keys := gcd.GetKeys(ctx, "MyKind")
gcd.DropKind(ctx, "MyKind")

# Functions

DropKind drops entire kind by deleting all entities from it.
GetKeys gets slice with all kind's keys.
MustGetAll wrapper for GetAll method which may panic.
MustPut wrapper for Put method which may panic.