Skip to content

Commit bb4a7f2

Browse files
authored
Make driver option required (#138)
* work * fragment
1 parent c2fbcb3 commit bb4a7f2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
kind: Breaking
2+
body: Config option `driver` is now required instead of defaulting to asyncpg
3+
time: 2025-12-10T09:21:32.2253488Z
4+
custom:
5+
Author: rayakame
6+
PR: "138"

.changie.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ kinds:
2929
auto: patch
3030
- label: Dependencys
3131
auto: patch
32+
- label: Breaking
33+
auto: patch
3234
newlines:
3335
afterChangelogHeader: 1
3436
beforeChangelogVersion: 1

internal/core/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func ParseConfig(req *plugin.GenerateRequest) (*Config, error) {
4444
return nil, fmt.Errorf("unmarshalling plugin options: %w", err)
4545
}
4646
if config.SqlDriver == "" {
47-
config.SqlDriver = SQLDriverAioSQLite
47+
return nil, fmt.Errorf("invalid options: driver must not be empty")
4848
}
4949
val, err := isDriverAsync(config.SqlDriver)
5050
if err != nil {

0 commit comments

Comments
 (0)