feat: containerize
This commit is contained in:
parent
83bb72faac
commit
82a78da81b
10 changed files with 319 additions and 55 deletions
|
|
@ -11,7 +11,7 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
_ "modernc.org/sqlite"
|
||||
)
|
||||
|
||||
// DroneEvent defines the DroneEvent struct as JSON
|
||||
|
|
@ -114,7 +114,7 @@ func main() {
|
|||
}
|
||||
|
||||
// Open database
|
||||
db, err := sql.Open("sqlite3", "./drone_black_box.db")
|
||||
db, err := sql.Open("sqlite", "./drone_black_box.db")
|
||||
if err != nil {
|
||||
slog.Error("Failed to open database", "error", err)
|
||||
os.Exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue