feat(csv): don't limit number of exported rows
This commit is contained in:
parent
cf412a4b54
commit
e62d7a34e6
@ -393,6 +393,8 @@ data DBCsvMode
|
|||||||
| DBCsvExportExample
|
| DBCsvExportExample
|
||||||
| DBCsvAbort
|
| DBCsvAbort
|
||||||
|
|
||||||
|
makePrisms ''DBCsvMode
|
||||||
|
|
||||||
data DBCsvDiff r' csv k'
|
data DBCsvDiff r' csv k'
|
||||||
= DBCsvDiffNew
|
= DBCsvDiffNew
|
||||||
{ dbCsvNewKey :: Maybe k'
|
{ dbCsvNewKey :: Maybe k'
|
||||||
@ -1034,7 +1036,8 @@ dbTable PSValidator{..} dbtable@DBTable{ dbtIdent = dbtIdent'@(toPathPiece -> db
|
|||||||
| PagesizeLimit l <- psLimit'
|
| PagesizeLimit l <- psLimit'
|
||||||
, selectPagesize
|
, selectPagesize
|
||||||
-> do
|
-> do
|
||||||
E.limit l
|
unless (has (_FormSuccess . _DBCsvExport) csvMode) $
|
||||||
|
E.limit l
|
||||||
E.offset (psPage * l)
|
E.offset (psPage * l)
|
||||||
Just ps -> E.where_ $ dbtRowKey t `E.sqlIn` ps
|
Just ps -> E.where_ $ dbtRowKey t `E.sqlIn` ps
|
||||||
_other -> return ()
|
_other -> return ()
|
||||||
|
|||||||
Reference in New Issue
Block a user