mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
Cleanup some pgsql connection handling.
This commit is contained in:
parent
422f87e912
commit
be9abe48fe
@ -186,7 +186,7 @@
|
||||
(defun truncate-tables (dbname table-name-list
|
||||
&key (identifier-case :downcase))
|
||||
"Truncate given TABLE-NAME in database DBNAME"
|
||||
(pomo:with-connection (get-connection-spec dbname)
|
||||
(with-pgsql-transaction (:dbname dbname)
|
||||
(set-session-gucs *pg-settings*)
|
||||
(let ((sql (format nil "TRUNCATE ~{~a~^,~};"
|
||||
(loop :for table-name :in table-name-list
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user