refactor: rename db module to data for clarity

This commit is contained in:
ae 2025-03-31 13:33:27 +03:00
parent 9ba182d925
commit 41d1336f58
Signed by: ae
GPG Key ID: 995EFD5C1B532B3E
7 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@
// versions: // versions:
// sqlc v1.28.0 // sqlc v1.28.0
package db package data
import ( import (
"context" "context"

View File

@ -2,7 +2,7 @@
// versions: // versions:
// sqlc v1.28.0 // sqlc v1.28.0
package db package data
import ( import (
"time" "time"

View File

@ -3,7 +3,7 @@
// sqlc v1.28.0 // sqlc v1.28.0
// source: note_versions.sql // source: note_versions.sql
package db package data
import ( import (
"context" "context"

View File

@ -3,7 +3,7 @@
// sqlc v1.28.0 // sqlc v1.28.0
// source: notes.sql // source: notes.sql
package db package data
import ( import (
"context" "context"

View File

@ -3,7 +3,7 @@
// sqlc v1.28.0 // sqlc v1.28.0
// source: refresh_tokens.sql // source: refresh_tokens.sql
package db package data
import ( import (
"context" "context"

View File

@ -3,7 +3,7 @@
// sqlc v1.28.0 // sqlc v1.28.0
// source: users.sql // source: users.sql
package db package data
import ( import (
"context" "context"

View File

@ -6,8 +6,8 @@ sql:
schema: "./migrations/" schema: "./migrations/"
gen: gen:
go: go:
package: "db" package: "data"
out: "../pkg/db" out: "../pkg/data"
sql_package: "pgx/v5" sql_package: "pgx/v5"
emit_json_tags: true emit_json_tags: true
overrides: overrides: