Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from DataDog/jlegrone/upstream-driver
Browse files Browse the repository at this point in the history
Switch to upstream SQLite driver
  • Loading branch information
jlegrone committed Oct 9, 2021
2 parents 3b71bff + 399cfa1 commit b2bcb51
Show file tree
Hide file tree
Showing 28 changed files with 101 additions and 4,128 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
strategy:
matrix:
include:
- cgo: "0"
# cgo is currently required by the upstream SQLite driver.
# This case should be un-commented if and when cgo is
# supported again.
# - cgo: "0"
- cgo: "1"
steps:
- uses: actions/checkout@v2
Expand Down
11 changes: 3 additions & 8 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ github.com/golang/groupcache/lru,https://github.com/golang/groupcache,Apache-2.0
github.com/golang/mock/gomock,https://github.com/golang/mock,Apache-2.0,
github.com/golang/protobuf,https://github.com/golang/protobuf,BSD-3-Clause,The Go Authors
github.com/golang/snappy,https://github.com/golang/snappy,BSD-3-Clause,The Snappy-Go Authors
github.com/google/go-cmp/cmp,https://github.com/google/go-cmp,BSD-3-Clause,The Go Authors
github.com/google/go-licenses/licenses,https://github.com/google/go-licenses,Apache-2.0,
github.com/google/licenseclassifier,https://github.com/google/licenseclassifier,Apache-2.0,
github.com/google/licenseclassifier/stringclassifier,https://github.com/google/licenseclassifier,Apache-2.0,
Expand All @@ -46,7 +47,6 @@ github.com/m3db/prometheus_common,https://github.com/m3db/prometheus_common,Apac
github.com/m3db/prometheus_common/internal/bitbucket.org/ww/goautoneg,https://github.com/m3db/prometheus_common,BSD-3-Clause,Open Knowledge Foundation Ltd
github.com/m3db/prometheus_procfs,https://github.com/m3db/prometheus_procfs,Apache-2.0,
github.com/mailru/easyjson,https://github.com/mailru/easyjson,MIT,Mail.Ru Group
github.com/mattn/go-isatty,https://github.com/mattn/go-isatty,MIT,
github.com/mattn/go-sqlite3,https://github.com/mattn/go-sqlite3,MIT,Yasuhiro Matsumoto
github.com/matttproud/golang_protobuf_extensions/pbutil,https://github.com/matttproud/golang_protobuf_extensions,Apache-2.0,
github.com/mitchellh/go-homedir,https://github.com/mitchellh/go-homedir,MIT,Mitchell Hashimoto
Expand All @@ -64,7 +64,6 @@ github.com/prometheus/common,https://github.com/prometheus/common,Apache-2.0,
github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg,https://github.com/prometheus/common,BSD-3-Clause,Open Knowledge Foundation Ltd
github.com/prometheus/procfs,https://github.com/prometheus/procfs,Apache-2.0,
github.com/rcrowley/go-metrics,https://github.com/rcrowley/go-metrics,BSD-2-Clause-FreeBSD,Richard Crowley
github.com/remyoudompheng/bigfft,https://github.com/remyoudompheng/bigfft,BSD-3-Clause,The Go Authors
github.com/robfig/cron,https://github.com/robfig/cron,MIT,Rob Figueiredo
github.com/russross/blackfriday/v2,https://github.com/russross/blackfriday,BSD-2-Clause,Russ Ross
github.com/sergi/go-diff/diffmatchpatch,https://github.com/sergi/go-diff,MIT,The go-diff Authors
Expand All @@ -77,7 +76,6 @@ github.com/twmb/murmur3,https://github.com/twmb/murmur3,BSD-3-Clause,Sébastien
github.com/uber-common/bark,https://github.com/uber-common/bark,MIT,"Uber Technologies, Inc."
github.com/uber-go/tally,https://github.com/uber-go/tally,MIT,"Permission is hereby granted, free of charge, to any person obtaining a copy"
github.com/uber/tchannel-go,https://github.com/uber/tchannel-go,MIT,"Uber Technologies, Inc."
github.com/urfave/cli,https://github.com/urfave/cli,MIT,Jeremy Saenz & Contributors
github.com/urfave/cli/v2,https://github.com/urfave/cli,MIT,Jeremy Saenz & Contributors
github.com/xanzy/ssh-agent,https://github.com/xanzy/ssh-agent,Apache-2.0,
github.com/xwb1989/sqlparser,https://github.com/xwb1989/sqlparser,Apache-2.0,
Expand All @@ -90,6 +88,8 @@ go.temporal.io/sdk,,MIT,Temporal Technologies Inc.
go.temporal.io/server,,MIT,Temporal Technologies Inc.
go.temporal.io/version/check,,MIT,Temporal Technologies Inc.
go.uber.org/atomic,,MIT,"Uber Technologies, Inc."
go.uber.org/dig,,MIT,"Uber Technologies, Inc."
go.uber.org/fx,,MIT,"Uber Technologies, Inc."
go.uber.org/multierr,,MIT,"Uber Technologies, Inc."
go.uber.org/zap,,MIT,"Uber Technologies, Inc."
golang.org/x/crypto,,BSD-3-Clause,The Go Authors
Expand All @@ -115,8 +115,3 @@ gopkg.in/validator.v2,,Apache-2.0,
gopkg.in/warnings.v0,,BSD-2-Clause,Péter Surányi
gopkg.in/yaml.v2,,Apache-2.0,
gopkg.in/yaml.v3,,MIT,Kirill Simonov
modernc.org/libc,,BSD-3-Clause,The Go Authors
modernc.org/libc/honnef.co/go/netdb,,MIT,Dominik Honnef
modernc.org/mathutil,,,
modernc.org/memory,,BSD-3-Clause,Evan Shaw <edsrzf@gmail.com>
modernc.org/sqlite,,BSD-3-Clause,The Sqlite Authors
11 changes: 7 additions & 4 deletions cmd/temporalite/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ package main

import (
"fmt"
"log"
goLog "log"
"os"

"github.com/urfave/cli/v2"
"go.temporal.io/server/common/headers"
tlog "go.temporal.io/server/common/log"
"go.temporal.io/server/common/log"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"

// Load sqlite storage driver
_ "go.temporal.io/server/common/persistence/sql/sqlplugin/sqlite"

"github.com/DataDog/temporalite"
"github.com/DataDog/temporalite/internal/liteconfig"
)
Expand All @@ -37,7 +40,7 @@ func init() {

func main() {
if err := buildCLI().Run(os.Args); err != nil {
log.Fatal(err)
goLog.Fatal(err)
}
}

Expand Down Expand Up @@ -117,7 +120,7 @@ func buildCLI() *cli.App {
if err != nil {
return err
}
logger := tlog.NewZapLogger(l)
logger := log.NewZapLogger(l)
opts = append(opts, temporalite.WithLogger(logger))
}

Expand Down
7 changes: 1 addition & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ go 1.16
require (
github.com/google/go-licenses v0.0.0-20210816172045-3099c18c36e1
github.com/google/licenseclassifier v0.0.0-20210722185704-3043a050f148
github.com/iancoleman/strcase v0.2.0
github.com/jmoiron/sqlx v1.3.4
github.com/mattn/go-sqlite3 v1.14.8
github.com/urfave/cli/v2 v2.3.0
go.temporal.io/api v1.5.0
go.temporal.io/sdk v1.10.0
go.temporal.io/server v1.12.1-0.20210921161622-b20a256e8e4f
go.temporal.io/server v1.12.1-0.20211008182052-3e5196b1b432
go.uber.org/zap v1.19.1
modernc.org/sqlite v1.13.0
)

0 comments on commit b2bcb51

Please sign in to comment.