Skip to content
Postmodern addition for executing standalone SQL files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
postmodern-execute-file.asd
read-sql-files.lisp

README.md

postmodern-execute-file

Postmodern addition for executing standalone SQL files

What?

Consists of a page of code shamelessly stolen from pgloader and a single exported function, postmodern/execute-file:execute-file that executes all queries in the SQL file at the provided pathname.

Why?

To be able to execute standalone SQL files, and to avoid loading all of pgloader just to have that functionality available in postmodern.

How?

(postmodern/execute-file:execute-file #p"/home/phoe/foo.sql")
You can’t perform that action at this time.