From a34770adaa94426c4a4c1f49335da32f1af85c41 Mon Sep 17 00:00:00 2001 From: Chris Sexton <3216719+chrissexton@users.noreply.github.com> Date: Tue, 21 Dec 2021 14:30:41 -0500 Subject: [PATCH] rm sqlite --- Dockerfile | 1 - TODO.md | 3 --- config/config.go | 12 ------------ 3 files changed, 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c15938..4d6135b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ FROM alpine:edge RUN apk add --no-cache git RUN apk add --no-cache musl-dev RUN apk add --no-cache gcc -RUN apk add --no-cache sqlite RUN apk add --no-cache go RUN apk add --no-cache perl RUN apk add --no-cache make diff --git a/TODO.md b/TODO.md index ea55274..a758369 100644 --- a/TODO.md +++ b/TODO.md @@ -13,9 +13,6 @@ This bot was written a long time back in the spare time of a busy person. The co * Action * FullText * Operator -* Figure out something better for time? - * SQLite has a datetime, but the driver can't seem to handle null - * SQLite sometimes returns a different date string, which appers to be what the driver is trying to translate from/to * Implement factoid aliasing * Implement an object system for the give/take commands * Create some kind of web reference page diff --git a/config/config.go b/config/config.go index 94b4255..237e734 100644 --- a/config/config.go +++ b/config/config.go @@ -192,18 +192,6 @@ func (c *Config) SetArray(key string, values []string) error { return c.Set(key, vals) } -//func init() { -// regex := func(re, s string) (bool, error) { -// return regexp.MatchString(re, s) -// } -// sql.Register("sqlite3_custom", -// &sqlite3.SQLiteDriver{ -// ConnectHook: func(conn *sqlite3.SQLiteConn) error { -// return conn.RegisterFunc("REGEXP", regex, true) -// }, -// }) -//} - // Readconfig loads the config data out of a JSON file located in cfile func ReadConfig(storepath string) *Config { store, err := bh.Open(storepath, 0666, nil)