File: options.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 (19 lines) | stat: -rw-r--r-- 493 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
package testfixtures

var (
	skipDatabaseNameCheck bool
	resetSequencesTo      int64 = 10000
)

// SkipDatabaseNameCheck If true, loading fixtures will not check if the database
// name constaint "test". Use with caution!
func SkipDatabaseNameCheck(value bool) {
	skipDatabaseNameCheck = value
}

// ResetSequencesTo sets the value the sequences will be reset to.
// This is used by PostgreSQL and Oracle.
// Defaults to 10000.
func ResetSequencesTo(value int64) {
	resetSequencesTo = value
}