postgresql-query-3.10.0: Sql interpolating quasiquote plus some kind of primitive ORM using it
Safe HaskellNone
LanguageHaskell2010

Database.PostgreSQL.Query.SqlBuilder.Types

Synopsis

Sql builder result

data SqlBuilderResult Source #

Result if SqlBuilder. Contains separated builder for query and log.

Field masking in logs

data FieldOption Source #

Option for field instructing LogMasker what to do with field when logging

Constructors

FieldDefault

Do nothing. Field should be pasted as is

FieldMasked

Mask field in logs with placeholder.

Instances

Instances details
Eq FieldOption Source # 
Instance details

Defined in Database.PostgreSQL.Query.SqlBuilder.Types

Ord FieldOption Source # 
Instance details

Defined in Database.PostgreSQL.Query.SqlBuilder.Types

Show FieldOption Source # 
Instance details

Defined in Database.PostgreSQL.Query.SqlBuilder.Types

Generic FieldOption Source # 
Instance details

Defined in Database.PostgreSQL.Query.SqlBuilder.Types

Associated Types

type Rep FieldOption :: Type -> Type #

Lift FieldOption Source # 
Instance details

Defined in Database.PostgreSQL.Query.SqlBuilder.Types

type Rep FieldOption Source # 
Instance details

Defined in Database.PostgreSQL.Query.SqlBuilder.Types

type Rep FieldOption = D1 ('MetaData "FieldOption" "Database.PostgreSQL.Query.SqlBuilder.Types" "postgresql-query-3.10.0-5LISmCzCf6YHFrJlgDAYDl" 'False) (C1 ('MetaCons "FieldDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FieldMasked" 'PrefixI 'False) (U1 :: Type -> Type))

type LogMasker = FieldOption -> Builder -> Builder Source #

Function modifying query parameter value before pasting it to log.

defaultLogMasker :: LogMasker Source #

Simply replaces masked fields with placeholder.

hugeFieldsMasker :: Int -> LogMasker Source #

Masks fields which size is bigger than given argument in bytes.