persistent-ip-0.6.0: Code for using the ip package with yesod
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.Persist.Net.PostgreSQL

Description

This module provides orphan instances for data types from the ip package. These instances only work for PostgresSQL. The following PostgreSQL column types are used for each data types:

Orphan instances

PersistField IPv4 Source # 
Instance details

PersistField IPv4Range Source #

This does not normalize the range. Since PostgreSQL allows the user to store nonnormalized ranges, this instance preserves this behavior.

Instance details

PersistField Mac Source # 
Instance details

PersistFieldSql IPv4 Source # 
Instance details

Methods

sqlType :: Proxy IPv4 -> SqlType #

PersistFieldSql IPv4Range Source # 
Instance details

PersistFieldSql Mac Source # 
Instance details

Methods

sqlType :: Proxy Mac -> SqlType #