107
108
// GetSQLiteFileTestClusterOption return test options
109
>
func GetSQLiteFileTestClusterOption() *TestBaseOptions {
setup.go
110
>
return &TestBaseOptions{
111
>
SQLDBPluginName: sqlite.PluginName,
112
>
DBName: filepath.Join(os.TempDir(), GenerateRandomDBName()), // put files in temp to avoid cluttering the project
113
>
DBUsername: testSQLiteUser,
114
>
DBPassword: testSQLitePassword,
115
>
DBHost: environment.GetLocalhostIP(),
116
>
DBPort: 0,
117
>
SchemaDir: testSQLiteSchemaDir,
118
>
StoreType: config.StoreTypeSQL,
119
>
ConnectAttributes: map[string]string{
120
>
"cache": "shared",
121
>
"busy_timeout": "30000",
122
>
"journal_mode": "wal",
123
>
"synchronous": "normal",
124
>
},
125
>
}
126
>
}
127
128
// GetSQLiteMemoryTestClusterOption return test options