1
0
Fork 0
mirror of https://github.com/imjasonh/webpush synced 2026-07-20 04:48:08 +00:00

deploy script, use kms

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-11-25 11:04:19 -06:00
parent 0521c9ec5f
commit ee97c9b955
5 changed files with 148 additions and 35 deletions

View file

@ -7,7 +7,7 @@ import (
"time"
"github.com/imjasonh/webpush"
_ "github.com/mattn/go-sqlite3" // SQLite driver
_ "modernc.org/sqlite" // SQLite driver
)
// SQLite implements storage using SQLite.
@ -18,7 +18,7 @@ type SQLite struct {
// NewSQLite creates a new SQLite storage.
// dsn is the data source name, e.g., "webpush.db" or ":memory:".
func NewSQLite(dsn string) (*SQLite, error) {
db, err := sql.Open("sqlite3", dsn)
db, err := sql.Open("sqlite", dsn)
if err != nil {
return nil, fmt.Errorf("opening database: %w", err)
}