Sha256: 9a59e74c0d98194ec1b3141f63f1b7e6c81b8736d8c6833ac42a26106b681cd9
Contents?: true
Size: 565 Bytes
Versions: 4
Compression:
Stored size: 565 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), "../../lib/") require 'sqlpostgres' include SqlPostgres dbName = "sqlpostgres_test" Connection.open do |connection1| connection1.exec("create database #{dbName}") begin # Example: ../manual.dbk Connection.open('db_name'=>'sqlpostgres_test') do |connection| # Use the connection end # End example sleep(0.1) # I don't know why, but it seems to take some time # for the connection to be closed ensure connection1.exec("drop database #{dbName}") end end
Version data entries
4 entries across 4 versions & 1 rubygems