You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

options.go 493B

12345678910111213141516171819
  1. package testfixtures
  2. var (
  3. skipDatabaseNameCheck bool
  4. resetSequencesTo int64 = 10000
  5. )
  6. // SkipDatabaseNameCheck If true, loading fixtures will not check if the database
  7. // name constaint "test". Use with caution!
  8. func SkipDatabaseNameCheck(value bool) {
  9. skipDatabaseNameCheck = value
  10. }
  11. // ResetSequencesTo sets the value the sequences will be reset to.
  12. // This is used by PostgreSQL and Oracle.
  13. // Defaults to 10000.
  14. func ResetSequencesTo(value int64) {
  15. resetSequencesTo = value
  16. }