mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-09 15:56:58 +02:00
The Useless Use Of Loop did strike.
This commit is contained in:
parent
ad18c5370d
commit
267a1cc755
@ -46,8 +46,7 @@
|
||||
(pgloader.pgsql:list-columns (slot-value csv 'target-db)
|
||||
(slot-value csv 'target)))))
|
||||
(unless transforms
|
||||
(setf (slot-value csv 'transforms)
|
||||
(loop for c in columns collect nil)))))
|
||||
(setf (slot-value csv 'transforms) (make-list (length columns))))))
|
||||
|
||||
;;;
|
||||
;;; Read a file format in CSV format, and call given function on each line.
|
||||
|
@ -28,8 +28,7 @@
|
||||
(pgloader.pgsql:list-columns (slot-value fixed 'target-db)
|
||||
(slot-value fixed 'target)))))
|
||||
(unless transforms
|
||||
(setf (slot-value fixed 'transforms)
|
||||
(loop :repeat (length columns) :collect nil)))))
|
||||
(setf (slot-value fixed 'transforms) (make-list (length columns))))))
|
||||
|
||||
(declaim (inline parse-row))
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
||||
(slot-value source 'transforms))))
|
||||
(unless transforms
|
||||
(setf (slot-value source 'transforms)
|
||||
(loop for c in (slot-value source 'columns) collect nil))))))
|
||||
(make-list (length (slot-value source 'columns))))))))
|
||||
|
||||
(defgeneric map-rows (source &key process-row-fn)
|
||||
(:documentation
|
||||
|
Loading…
Reference in New Issue
Block a user