bdcs-0.2.0: Tools for managing a content store of software packages

Copyright(c) 2017 Red Hat Inc.
LicenseLGPL
Maintainerhttps://github.com/weldr
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

BDCS.KeyType

Description

Data types for working with the key in a KeyVal.

Synopsis

Documentation

data KeyType Source #

The KeyVal record features a namespaced key, allowing multiple types of keys to exist and be managed in the same database. This type allows differentiation of the multiple kinds of keys.

Constructors

LabelKey Label

A key allowing only pre-defined labels to be appplied.

TextKey Text

Ordinary text key

Instances

Eq KeyType Source # 

Methods

(==) :: KeyType -> KeyType -> Bool #

(/=) :: KeyType -> KeyType -> Bool #

Read KeyType Source # 
Show KeyType Source # 
ToJSON KeyType Source # 

Methods

toJSON :: KeyType -> Value

toEncoding :: KeyType -> Encoding

toJSONList :: [KeyType] -> Value

toEncodingList :: [KeyType] -> Encoding

PersistFieldSql KeyType Source # 

Methods

sqlType :: Proxy * KeyType -> SqlType

PersistField KeyType Source # 

Methods

toPersistValue :: KeyType -> PersistValue

fromPersistValue :: PersistValue -> Either Text KeyType

asText :: KeyType -> Text Source #

Convert a KeyType into Text