File: postgresql_test.go

package info (click to toggle)
golang-gopkg-testfixtures.v2 2.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 220 kB
  • sloc: sql: 235; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 377 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// +build postgresql

package testfixtures

import (
	_ "github.com/lib/pq"
)

func init() {
	databases = append(databases,
		databaseTest{
			"postgres",
			"PG_CONN_STRING",
			"testdata/schema/postgresql.sql",
			&PostgreSQL{},
		},
		databaseTest{
			"postgres",
			"PG_CONN_STRING",
			"testdata/schema/postgresql.sql",
			&PostgreSQL{UseAlterConstraint: true},
		},
	)
}