postgresql

package
v0.0.0-...-ebdf1d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package postgresql provides a wrapper around the pq package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Username        string
	Password        string
	Database        string
	Hostname        string
	Port            int
	Parameter       string
	MigrationFolder string
	Extension       string
}

Info holds the details for the connection.

func (Info) Connect

func (c Info) Connect(specificDatabase bool) (*sqlx.DB, error)

Connect to the database.

func (Info) Create

func (c Info) Create(sql *sqlx.DB) error

Create a new database.

func (Info) Drop

func (c Info) Drop(sql *sqlx.DB) error

Drop a database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL