File tree 5 files changed +9
-11
lines changed
5 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package prompts
2
2
3
3
import (
4
4
"bytes"
5
- _ "embed"
6
5
"strings"
7
6
"text/template"
8
7
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
"github.com/helixml/helix/api/pkg/stripe"
28
28
"github.com/helixml/helix/api/pkg/system"
29
29
30
- _ "net/http/pprof"
30
+ _ "net/http/pprof" // enable profiling
31
31
)
32
32
33
33
const APIPrefix = "/api/v1"
Original file line number Diff line number Diff line change @@ -3,12 +3,11 @@ package store
3
3
import (
4
4
"fmt"
5
5
6
- _ "github.com/lib/pq"
7
-
8
6
"gorm.io/gorm"
9
7
10
- _ "github.com/doug-martin/goqu/v9/dialect/postgres"
11
- _ "github.com/golang-migrate/migrate/v4/database/postgres"
8
+ _ "github.com/doug-martin/goqu/v9/dialect/postgres" // postgres query builder
9
+ _ "github.com/golang-migrate/migrate/v4/database/postgres" // postgres migrations
10
+ _ "github.com/lib/pq" // enable postgres driver
12
11
)
13
12
14
13
// the poing of this setup is if when we change database schemas we need to loop over
Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ import (
13
13
14
14
"database/sql"
15
15
16
- _ "github.com/lib/pq"
17
- "github.com/rs/zerolog/log"
16
+ _ "github.com/doug-martin/goqu/v9/dialect/postgres" // postgres query builder
17
+ _ "github.com/golang-migrate/migrate/v4/database/postgres" // postgres migrations
18
+ _ "github.com/lib/pq" // enable postgres driver
18
19
19
20
"gorm.io/driver/postgres"
20
21
"gorm.io/gorm"
21
22
22
23
"github.com/doug-martin/goqu/v9"
23
- _ "github.com/doug-martin/goqu/v9/dialect/postgres"
24
24
"github.com/golang-migrate/migrate/v4"
25
- _ "github.com/golang-migrate/migrate/v4/database/postgres"
26
25
"github.com/golang-migrate/migrate/v4/source/iofs"
27
26
"github.com/helixml/helix/api/pkg/config"
28
27
"github.com/helixml/helix/api/pkg/types"
28
+ "github.com/rs/zerolog/log"
29
29
)
30
30
31
31
type PostgresStore struct {
Original file line number Diff line number Diff line change 7
7
"io"
8
8
"log"
9
9
"net/http"
10
- _ "net/http/pprof"
10
+ _ "net/http/pprof" // enable profiling
11
11
"os"
12
12
"sync"
13
13
"time"
You can’t perform that action at this time.
0 commit comments