persistent-protobuf-0.1.5: Template-Haskell helpers for integrating protobufs with persistent.

Safe HaskellNone

Database.Persist.TH.ProtocolBuffers

Description

derivePersistFieldPB uses Template Haskell to produce PersistField instances for types with ReflectDescriptor and Wire instances just as derivePersistField produces PersistField instances for types with Read and Show instances.

Synopsis

Documentation

derivePersistFieldPBSource

Arguments

:: String

Name of the type to derive instances for.

-> Q [Dec] 

Derive PersistField instances for typName. typName should be an instance of the ReflectDescriptor and Wire classes.