Takusen-0.7: Database library with left-fold interface, for PostgreSQL, Oracle, SQLite, ODBC.

Portabilitynon-portable
Stabilityexperimental
Maintaineroleg@pobox.com, alistair@abayley.org

Database.Util

Description

Utility functions. Mostly used in database back-ends, and tests.

Synopsis

Documentation

class Show a => MyShow a whereSource

Methods

show_ :: a -> StringSource

Instances

print_ :: (MonadIO m, MyShow a) => a -> m ()Source

Like System.IO.print, except that Strings are not escaped or quoted.

mkUTCTime :: (Integral a, Real b) => a -> a -> a -> a -> a -> b -> UTCTimeSource

Convenience for making UTCTimes. Assumes the time given is already UTC time i.e. there's no timezone adjustment.

mkCalTime :: Integral a => a -> a -> a -> a -> a -> a -> CalendarTimeSource

datePartsToInt64 :: (Integral a1, Integral a2, Integral a3, Integral a4, Integral a5, Integral a6) => (a1, a2, a3, a4, a5, a6) -> Int64Source

positions :: Eq a => [a] -> [a] -> [Int]Source

utcTimeToIsoString :: (Integral a, Integral b) => UTCTime -> String -> (a -> a) -> (b -> String) -> StringSource

calTimeToPGDatetime :: CalendarTime -> StringSource

Assumes CalendarTime is also UTC i.e. ignores ctTZ component.