Skip to content

stephanos/hrd

Repository files navigation

hrd Build Status Coverage Status GoDoc

This Go package extends the package appengine.datastore with very useful additional features.

Disclaimer

This package is currently undergoing a massive restructuring. Use at own risk

Features

  • caching: great performance through memcache
  • fluent API: concise code for read, query, write and delete actions
  • hybrid query: queries that have strong consistency and use memcache
  • lifecycle hooks: BeforeLoad/AfterLoad and BeforeSave/AfterSave
  • caching control: turn caching on/off for queries and entities
  • logging: every datastore action is logged for debugging

Internally it uses nds, structor and iszero.

ToDos

  • validated projection query
  • in-memory cache
  • field name & name transformer
  • allow to pass-in logger
  • RPC listener
  • catch more errors at codec creation
  • delete from query
  • namespace support

Install

go get github.com/stephanos/hrd

Documentation

godoc.org

Credit

Without those projects this library would not exist. Thanks!

License

Apache License 2.0 (see LICENSE).

Usage

I suggest having a look at the E2E tests to see how it is used.

About

Go package for App Engine datastore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published