WithDBFrom sets the template database to use when creating a new database. Overrides the DB_FROM environment variable.
(dbFrom string)
| 146 | // WithDBFrom sets the template database to use when creating a new database. |
| 147 | // Overrides the DB_FROM environment variable. |
| 148 | func WithDBFrom(dbFrom string) OpenOption { |
| 149 | return func(o *OpenOptions) { |
| 150 | o.DBFrom = &dbFrom |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | // WithLogDSN sets whether the DSN should be logged during testing. |
| 155 | // This provides an ergonomic way to connect to test databases during debugging. |
no outgoing calls