Commit Graph

202 Commits

Author SHA1 Message Date
Sebastián Estrella
ea6f1807a4 Add arrayAggDistinct wrapper for PostgreSQL function 2018-01-10 10:02:44 -05:00
Matt Parsons
07167f6474 use upstream persistent 2017-10-23 11:16:59 -06:00
Fintan Halpenny
dd814584f3 No more CPP 2017-08-09 22:53:28 +01:00
Fintan Halpenny
3f1ffec01a Cleaning up cabal 2017-08-09 22:50:06 +01:00
Fintan Halpenny
1262c3fef9 Split into multiple testing stanzas and modules for backends
Common/Test.hs holds all common tests and functionality for the backends
2017-08-09 22:44:30 +01:00
Fintan Halpenny
fe4a78d4b6 Moved all describes tests into their own functions.
Factored out the db specific tests and kept the macros as placeholders.
Import everything in the cabal file for now.
Only using the flags to test that everything still works.
2017-08-09 00:19:09 +01:00
Fintan Halpenny
672f6e8884 Bumped up time package upper bound to 1.8.0.2 2017-08-04 15:17:12 +01:00
Fintan Halpenny
03c9590581 Added lower bound for package 2017-08-04 14:10:17 +01:00
Fintan Halpenny
013dc19b15 Accidentally committed True default for postgres 2017-08-03 20:47:43 +01:00
Fintan Halpenny
a4ebae2345 Use type constraint to constrain a to UTCTime 2017-08-02 16:34:46 +01:00
Fintan Halpenny
161914ddbc Added now_ function. Works in the tests (NOTE: It doesn not work in SQLite). Need to see if there is an answer for constraining the in to only know about time 2017-08-02 13:48:21 +01:00
Chris Allen
0c6bba7026 Formatting the Cabal file 2017-05-25 12:07:28 -05:00
Chris Allen
78eaf83859 Whitespace cleanup 2017-05-25 12:00:00 -05:00
Chris Allen
96cc3a546b Merge pull request #20 from ncaq/master
use persistent-sqlite >= 2.1.3
2017-05-25 11:21:18 -05:00
Sibi Prabakaran
52a442fb98
Allow persistent 2.7.0 2017-04-15 18:14:13 +05:30
Herbert Valerio Riedel
3e1d3deede Tighten version bound on base
Given that CI only seems to test against GHC 7.10 & GHC 8.0 it's safe to say that only
`base >= 4.8` is officially supported. And empirically, GHC 7.8.4 runs into the compile error below

```
Configuring component lib from esqueleto-2.5.0...
Preprocessing library esqueleto-2.5.0...
[1 of 5] Compiling Database.Esqueleto.Internal.PersistentImport ( src/Database/Esqueleto/Internal/PersistentImport.hs, /tmp/matrix-worker/1485112890/dist-newstyle/build/x86_64-linux/ghc-7.8.4/esqueleto-2.5.0/build/Database/Esqueleto/Internal/PersistentImport.o )

src/Database/Esqueleto/Internal/PersistentImport.hs:7:1: Warning:
    The import item ‘PersistQuery(..)’ suggests that
    ‘PersistQuery’ has (in-scope) constructors or class methods,
    but it has none
[2 of 5] Compiling Database.Esqueleto.Internal.Language ( src/Database/Esqueleto/Internal/Language.hs, /tmp/matrix-worker/1485112890/dist-newstyle/build/x86_64-linux/ghc-7.8.4/esqueleto-2.5.0/build/Database/Esqueleto/Internal/Language.o )

src/Database/Esqueleto/Internal/Language.hs:55:1: Warning:
    The qualified import of ‘Data.ByteString.Lazy’ is redundant
      except perhaps to import instances from ‘Data.ByteString.Lazy’
    To import instances alone, use: import Data.ByteString.Lazy()
[3 of 5] Compiling Database.Esqueleto.Internal.Sql ( src/Database/Esqueleto/Internal/Sql.hs, /tmp/matrix-worker/1485112890/dist-newstyle/build/x86_64-linux/ghc-7.8.4/esqueleto-2.5.0/build/Database/Esqueleto/Internal/Sql.o )

src/Database/Esqueleto/Internal/Sql.hs:761:32:
    Could not deduce (Functor m1) arising from a use of ‘<$>’
    from the context (SqlSelect a r, MonadIO m1, MonadIO m2)
      bound by the type signature for
                 rawSelectSource :: (SqlSelect a r, MonadIO m1, MonadIO m2) =>
                                    Mode -> SqlQuery a -> SqlReadT m1 (Acquire (C.Source m2 r))
      at src/Database/Esqueleto/Internal/Sql.hs:(753,20)-(758,57)
    or from (SqlBackendCanRead backend)
      bound by the type signature for
                 rawSelectSource :: (SqlBackendCanRead backend) =>
                                    Mode
                                    -> SqlQuery a -> R.ReaderT backend m1 (Acquire (C.Source m2 r))
      at src/Database/Esqueleto/Internal/Sql.hs:(759,1)-(778,35)
    Possible fix:
      add (Functor m1) to the context of
        the type signature for
          rawSelectSource :: (SqlBackendCanRead backend) =>
                             Mode
                             -> SqlQuery a -> R.ReaderT backend m1 (Acquire (C.Source m2 r))
        or the type signature for
             rawSelectSource :: (SqlSelect a r, MonadIO m1, MonadIO m2) =>
                                Mode -> SqlQuery a -> SqlReadT m1 (Acquire (C.Source m2 r))
    In a stmt of a 'do' block: conn <- persistBackend <$> R.ask
    In the expression:
      do { conn <- persistBackend <$> R.ask;
           res <- run conn;
           return $ (C.$= massage) `fmap` res }
    In an equation for ‘rawSelectSource’:
        rawSelectSource mode query
          = do { conn <- persistBackend <$> R.ask;
                 res <- run conn;
                 return $ (C.$= massage) `fmap` res }
          where
              run conn
                = uncurry rawQueryRes
                  $ first builderToText
                    $ toRawSql mode (conn, initialIdentState) query
              massage
                = do { mrow <- C.await;
                       .... }
              process = sqlSelectProcessRow

src/Database/Esqueleto/Internal/Sql.hs:882:26:
    Could not deduce (Functor m) arising from a use of ‘<$>’
    from the context (MonadIO m, SqlSelect a r, IsSqlBackend backend)
      bound by the type signature for
                 rawEsqueleto :: (MonadIO m, SqlSelect a r, IsSqlBackend backend) =>
                                 Mode -> SqlQuery a -> R.ReaderT backend m Int64
      at src/Database/Esqueleto/Internal/Sql.hs:(877,17)-(880,39)
    Possible fix:
      add (Functor m) to the context of
        the type signature for
          rawEsqueleto :: (MonadIO m, SqlSelect a r, IsSqlBackend backend) =>
                          Mode -> SqlQuery a -> R.ReaderT backend m Int64
    In a stmt of a 'do' block: conn <- persistBackend <$> R.ask
    In the expression:
      do { conn <- persistBackend <$> R.ask;
           uncurry rawExecuteCount
           $ first builderToText
             $ toRawSql mode (conn, initialIdentState) query }
    In an equation for ‘rawEsqueleto’:
        rawEsqueleto mode query
          = do { conn <- persistBackend <$> R.ask;
                 uncurry rawExecuteCount
                 $ first builderToText
                   $ toRawSql mode (conn, initialIdentState) query }
```
2017-03-21 22:07:03 +01:00
Chris Allen
6e2b880488 Makefile, LTS for 8.0, bump version 2017-01-22 12:55:05 -06:00
Pascal Wittmann
3658f11a01 Update link in Hackage description 2017-01-16 20:55:16 +01:00
mrkkrp
eaa7c1057f Allow ‘persistent-2.6’ and ‘base-4.9’ 2017-01-11 03:08:10 +03:00
mrkkrp
42bcb97f41 Update source repository link in Cabal file 2017-01-08 18:48:05 +03:00
ncaq
75c3549c86 use persistent-sqlite >= 2.1.3 2016-12-16 15:47:56 +09:00
Chris Allen
ae82ee4826 Getting Travis working 2016-12-14 19:16:07 -06:00
Eric Easley
a5251302c8 Use released persistent-2.5 2016-04-14 15:20:57 -07:00
Felipe Lessa
c30aa5704d Bump version to 2.4.3. 2016-02-12 18:47:37 -02:00
Felipe Lessa
17b9c3be9a Bump version to 2.4.2. 2016-01-14 18:22:43 -02:00
Felipe Lessa
a59953954c Bump version to 2.4.1. 2015-08-11 12:05:24 -03:00
Felipe Lessa
4657230ca7 Bump version to 2.4.0. 2015-08-05 16:15:16 -03:00
Felipe Lessa
e5747fdfbf Bump version to 2.3.0. 2015-08-05 15:54:29 -03:00
Felipe Lessa
78a7fcdaeb New SqlString class, ditch IsString. 2015-08-05 15:54:16 -03:00
Felipe Lessa
9dbdcb53fa Bump version to 2.2.12. 2015-08-05 15:40:54 -03:00
Felipe Lessa
b2998bc7dc Bump version to 2.2.11. 2015-08-02 22:14:06 -03:00
Felipe Lessa
7bd2af01fd Bump version to 2.2.10. 2015-07-16 19:08:38 -03:00
Felipe Lessa
d153dbd40a Bump version to 2.2.9. 2015-07-15 14:20:23 -03:00
Felipe Lessa
6c63f2c5ac Add array_agg function, new PostgreSQL module. 2015-07-15 12:28:26 -03:00
Felipe Lessa
e5150463ad Bump version to 2.2.7. 2015-06-27 12:29:27 -03:00
Felipe Lessa
dd9c190da3 Bump version to 2.2.6. 2015-06-24 17:12:45 -03:00
Felipe Lessa
a6186ec0f2 Remove persistent upper bounds from test suite. 2015-06-24 17:11:42 -03:00
Felipe Lessa
ddf22d358d Bump version to 2.2.5. 2015-06-24 11:09:33 -03:00
Felipe Lessa
6db7f3515c Accept persistent-2.2. 2015-06-24 11:09:25 -03:00
Felipe Lessa
1803970ea4 Bump version to 2.2.4. 2015-06-19 15:45:39 -03:00
Felipe Lessa
0e734e79e0 Bump version to 2.2.3. 2015-05-20 13:48:04 -03:00
Felipe Lessa
53f31f4f62 Bump version to 2.2.2. 2015-05-18 17:51:17 -03:00
Felipe Lessa
72f29e436b Bump version to 2.2.1. 2015-05-12 13:19:01 -03:00
Felipe Lessa
da5f8240c7 Remove beta warning (wat?). 2015-05-12 12:13:15 -03:00
Felipe Lessa
c8ee46f702 Bump version to 2.2. 2015-04-27 17:02:19 -03:00
Felipe Lessa
45ccbf383f Bump version to 2.1.3. 2015-04-10 23:23:13 -03:00
Alberto Valverde
02fa5350fe bumped up dependency on the lowest persistent version we need 2015-04-10 10:06:34 +02:00
Felipe Lessa
8b67bf9640 Bump version to 2.1.2.3. 2015-04-06 23:43:58 -03:00
Felipe Lessa
41d4cb283a GHC 7.10. 2015-04-06 23:37:48 -03:00
Michael Snoyman
69a4ec0c44 Fix test suite for new SqliteException
Sorry for the breakage @meteficha, and hope you don't mind that I'm
deploying this to Hackage.
2015-03-29 08:29:49 +03:00
Felipe Lessa
abf91a1352 Bump version to 2.1.2.1. 2014-11-24 15:04:11 -02:00
Felipe Lessa
40c4528540 Bump version to 2.1.2. 2014-11-03 12:27:46 -02:00
Felipe Lessa
c13807e6ea Bump version to 2.1.1. 2014-10-23 09:13:04 -02:00
Felipe Lessa
6efe4848c0 text-1.2 2014-10-23 09:12:50 -02:00
Michael Snoyman
a26394d072 persistent 2.1 (pinging @meteficha) 2014-09-30 06:44:15 +03:00
Michael Snoyman
05fbbba86a Support for persistent 2.0.8 2014-09-28 07:05:41 +03:00
Michael Snoyman
bcb620026f Support persistent 2.0.5 2014-09-21 21:34:09 +03:00
Felipe Lessa
e1071c40b6 Bump versions. 2014-09-18 12:15:26 -03:00
Michael Snoyman
4febf46c6a Merge branch 'persistent2' of github.com:fpco/esqueleto
Conflicts:
	esqueleto.cabal
	src/Database/Esqueleto.hs
2014-09-08 09:05:57 +03:00
Felipe Lessa
e915930b15
Bump version to 1.4.4. 2014-07-12 12:01:08 -03:00
Felipe Lessa
bfdb140e46
Bump version to 1.4.3. 2014-07-12 00:27:23 -03:00
Felipe Lessa
6d985711ea Bump version to 1.4.2. 2014-07-07 23:55:46 -03:00
Felipe Lessa
4c14076d35 Move to prowdsponsor. 2014-07-05 00:41:23 -03:00
Michael Snoyman
deceb9f242 Merge remote-tracking branch 'origin/persistent2' into persistent2
Conflicts:
	esqueleto.cabal
2014-05-26 16:35:23 +03:00
Michael Snoyman
2685cdb7f7 Merge branch 'master' of github.com:meteficha/esqueleto into HEAD
Conflicts:
	esqueleto.cabal
	src/Database/Esqueleto/Internal/Sql.hs
2014-05-26 16:34:34 +03:00
Felipe Lessa
f77ff7b1f7 Bump version to 1.4.1.2. 2014-05-21 14:19:59 -03:00
Felipe Lessa
2be1c1bc20 Reword package description (fixes #65). 2014-05-21 14:19:29 -03:00
Emanuel Borsboom
55267dd2d9 Bump upper bounds for base and text 2014-05-13 15:24:26 -07:00
Felipe Lessa
dbe4689cd7
Bump version to 1.4.1. 2014-05-08 10:55:24 -03:00
Felipe Lessa
8e52ef6b51
Major version bump to 1.4.
Although most people's code won't break, this release generalizes many
type signatures and changes the signatures of the conduit versions.
2014-04-23 11:43:12 -03:00
Michael Snoyman
d47a1a00e3 resourcet 1.1 2014-04-18 14:53:50 +03:00
Felipe Lessa
951f027d68
Bump version to 1.3.12. 2014-04-14 14:58:26 -03:00
Felipe Lessa
a3d3ce0e1d
Bump version to 1.3.11. 2014-04-13 23:55:49 -03:00
Felipe Lessa
babca941fc
Bump version to 1.3.10. 2014-04-08 19:32:11 -03:00
Erik de Castro Lopo
8df36fb9c7 esqueleto.cabal : Relax constraint on conduit. 2014-04-09 05:56:21 +10:00
Felipe Lessa
a578719907 Bump version to 1.3.9. 2014-04-03 08:47:54 -03:00
Michael Snoyman
f701df4a8d Allow hspec 1.8 2014-04-03 08:31:21 +03:00
Felipe Lessa
37b51d24c6
Bump version to 1.3.8. 2014-04-02 23:27:52 -03:00
Felipe Lessa
24bad8ba0b Update test deps. 2014-04-02 23:27:30 -03:00
Felipe Lessa
c642b71b99
Bump version to 1.3.7. 2014-04-02 13:25:21 -03:00
Felipe Lessa
67522cecbc
Bump version to 1.3.6. 2014-04-02 11:45:32 -03:00
Felipe Lessa
c2b1750cd9 Bump version to 1.3.5. 2014-03-04 09:26:50 -03:00
Felipe Lessa
0de8242634 Use persistent 1.3+ new limit/offset func (closes #35).
This code was actually written by @gbwey and it's being
manually merged with some changes by me.
2014-03-04 09:25:14 -03:00
Felipe Lessa
2e6b0c7c2b
GHC 7.8. 2014-03-03 12:02:18 -03:00
Michael Snoyman
b5ce7cd644 Version bump 2014-01-26 07:37:30 +02:00
Sergei Trofimovich
7ffead2e40 esqueleto.cabal: allow test-1.0 and text-1.1
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2014-01-25 20:27:03 +03:00
Michael Snoyman
20565af0b1 Version bump 2014-01-25 18:20:34 +02:00
Oliver Charles
41cdd9af58 Increase upper bound on HSpec
This allows tests to be built and run when packaging for NixOS.
2014-01-25 11:33:20 +00:00
Michael Snoyman
0d5d427e0d Version bump 2014-01-16 16:03:53 +02:00
Michael Snoyman
7f6ae061da persistent2 2014-01-16 08:24:43 +02:00
Michael Snoyman
646c115257 persistent 1.3 support 2014-01-01 21:38:16 +02:00
Felipe Lessa
59deede08a Merge pull request #30 from jcristovao/upstream
PostgreSQL and MySQL support
2013-09-15 09:05:35 -07:00
Felipe Lessa
4e6f25e656 Bump version to 1.3.4.2. 2013-09-15 13:00:57 -03:00
Felipe Lessa
a5c2d8dddb Bump version to 1.3.4.1. 2013-09-15 13:00:14 -03:00
João Cristóvão
1dd2e045b3 Added support for PostgreSQL and MySQL/MariaDB. 2013-09-15 15:47:39 +01:00
Felipe Lessa
7af17770d0 Bump version to 1.3.4. 2013-09-15 04:16:55 -03:00
Felipe Lessa
91e480afc6 Bump version to 1.3.3. 2013-08-27 10:33:51 -03:00
Felipe Lessa
3baa2e85e8 Bump hspec dep. 2013-08-27 10:33:45 -03:00
Felipe Lessa
cadce1ce6c Bump version to 1.3.2. 2013-08-09 14:40:51 -03:00
Felipe Lessa
2eb454ddb2 Bump version to 1.3.1. 2013-08-08 19:54:19 -03:00