summaryrefslogtreecommitdiff
path: root/internal/database/repos
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2024-04-07 09:53:04 +0300
committerGrailFinder <wohilas@gmail.com>2024-04-07 09:53:04 +0300
commit4a42a4465c8ff5496229f8883b9d1532bf7c9cab (patch)
treee0cbccdfe6a770cbbdecee2e2176ee697997229e /internal/database/repos
parentb662265234d70d648a7adce74f3d9cc245456d3a (diff)
Feat: db connection and migrations
Diffstat (limited to 'internal/database/repos')
-rw-r--r--internal/database/repos/main.go15
1 files changed, 15 insertions, 0 deletions
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,
+ }
+}