Skip to content

add sqlite/mysql/postgresql support to ocspserve cli#757

Open
bjt79 wants to merge 23 commits intocloudflare:masterfrom
bjt79:db_cmd
Open

add sqlite/mysql/postgresql support to ocspserve cli#757
bjt79 wants to merge 23 commits intocloudflare:masterfrom
bjt79:db_cmd

Conversation

@bjt79
Copy link
Copy Markdown
Contributor

@bjt79 bjt79 commented May 1, 2017

No description provided.

Comment thread helpers/helpers_test.go
}
if !sctEquals(zeroSCT, lst[0]) {
t.Fatal("SCTs don't match")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some old code get erased (merged) here.

Comment thread helpers/helpers.go
default:
return nil, fmt.Errorf("multiple prefixes: %s",
strings.Join(splitVal[:len(splitVal)-1], ", "))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some old code get erased (merged) here.

Copy link
Copy Markdown
Contributor

@kisom kisom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The merge conflicts and test failures still need to be sorted out, too.

Comment thread helpers/helpers.go Outdated
// which can either be a file or the path to a DB (Sqlite, MySQL or PostgreSQL).
// It returns the type of the connection string (e.g. "File" or "MySQL" etc.) as
// well as the path to the source.
func ParseConnectionStr(conn string) (string, string, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ParseConnString (or NewSourceFromConnString should be renamed NewSourceFromConnectionString).

Comment thread ocsp/responder.go Outdated
// argument, and this function currently supports Sqlite, MySQL and PostgreSQL.
// The dbpath argument is a connection string aiding in connecting to the
// associated DB type.
func NewSourceFromConnStr(typ, dbpath string) (Source, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be NewSourceFromConnString.

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 4, 2017

Codecov Report

Merging #757 into master will increase coverage by 0.04%.
The diff coverage is 72.72%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #757      +/-   ##
==========================================
+ Coverage   57.67%   57.72%   +0.04%     
==========================================
  Files          78       75       -3     
  Lines        6922     6904      -18     
==========================================
- Hits         3992     3985       -7     
+ Misses       2513     2506       -7     
+ Partials      417      413       -4
Impacted Files Coverage Δ
ocsp/responder.go 68.93% <71.42%> (+0.13%) ⬆️
helpers/helpers.go 72.7% <73.33%> (+0.02%) ⬆️
transport/roots/system/root_darwin.go
transport/roots/system/root_cgo_darwin.go
transport/roots/system/root.go

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6388e1e...6b91c20. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants