From 4a42a4465c8ff5496229f8883b9d1532bf7c9cab Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sun, 7 Apr 2024 09:53:04 +0300 Subject: Feat: db connection and migrations --- internal/database/repos/main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 internal/database/repos/main.go (limited to 'internal/database/repos') diff --git a/internal/database/repos/main.go b/internal/database/repos/main.go new file mode 100644 index 0000000..e6f50be --- /dev/null +++ b/internal/database/repos/main.go @@ -0,0 +1,15 @@ +package repos + +import ( + "github.com/jmoiron/sqlx" +) + +type Provider struct { + db *sqlx.DB +} + +func NewProvider(conn *sqlx.DB) *Provider { + return &Provider{ + db: conn, + } +} -- cgit v1.2.3