~bouncepaw/betula

betula: Fix driver registration v1 APPLIED

~danilax86: 1
 Fix driver registration

 1 files changed, 6 insertions(+), 4 deletions(-)
#1044968 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~bouncepaw/betula/patches/43861/mbox | git am -3
Learn more about email & git

[PATCH betula] Fix driver registration Export this patch

From: Danila Gorelko <danila@danilax86.space>

---
 db/db.go | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/db/db.go b/db/db.go
index 765f89f..4b96eb1 100644
--- a/db/db.go
+++ b/db/db.go
@@ -11,10 +11,7 @@ import (
	"log"
)

// Initialize opens a SQLite3 database with the given filename. The connection is encapsulated, you cannot access the database directly, you are to use the functions provided by the package.
func Initialize(filename string) {
	var err error

func init() {
	var sqlite3conn []*sqlite3.SQLiteConn
	sql.Register("betulizator",
		&sqlite3.SQLiteDriver{
@@ -31,6 +28,11 @@ func Initialize(filename string) {
				return nil
			},
		})
}

// Initialize opens a SQLite3 database with the given filename. The connection is encapsulated, you cannot access the database directly, you are to use the functions provided by the package.
func Initialize(filename string) {
	var err error

	db, err = sql.Open("betulizator", filename+"?cache=shared")
	if err != nil {
-- 
2.38.5
betula/patches/.build.yml: SUCCESS in 2m41s

[Fix driver registration][0] from [~danilax86][1]

[0]: https://lists.sr.ht/~bouncepaw/betula/patches/43861
[1]: mailto:danila@danilax86.space

✓ #1044968 SUCCESS betula/patches/.build.yml https://builds.sr.ht/~bouncepaw/job/1044968
LGTM. Applied. Thanks!