Skip to content

Examples

Eugene Kabanov edited this page Jun 30, 2016 · 7 revisions

Usage of PostgreSQL COPY statements.

import asyncdispatch, asyncpg, strutils

var connStr = "host=localhost port=5432 dbname=travis_ci_test user=postgres"
var conn = waitFor connect(connStr)

waitFor makeCopyTo()
waitFor makeCopyFrom()
Clone this wiki locally