gcd

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: MIT Imports: 3 Imported by: 0

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")

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropKind

func DropKind(ctx context.Context, kind string) error

DropKind drops entire kind by deleting all entities from it.

func GetKeys

func GetKeys(ctx context.Context, kind string) ([]*datastore.Key, error)

GetKeys gets slice with all kind's keys.

func MustGetAll

func MustGetAll(ctx context.Context, query *datastore.Query, data interface{}) []*datastore.Key

MustGetAll wrapper for GetAll method which may panic.

func MustPut

func MustPut(ctx context.Context, key *datastore.Key, src interface{}) *datastore.Key

MustPut wrapper for Put method which may panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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