projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cfce32
)
Code comment
author
Matt Joiner <anacrolix@gmail.com>
Fri, 19 Feb 2021 01:37:26 +0000 (12:37 +1100)
committer
Matt Joiner <anacrolix@gmail.com>
Fri, 19 Feb 2021 01:37:26 +0000 (12:37 +1100)
storage/sqlite/sqlite-storage.go
patch
|
blob
|
history
diff --git
a/storage/sqlite/sqlite-storage.go
b/storage/sqlite/sqlite-storage.go
index 97f7181a8500cd6f6be23d44dd90f7e69937a973..1eb4b0fe6f95c9e2800315d2fee986120d890b87 100644
(file)
--- a/
storage/sqlite/sqlite-storage.go
+++ b/
storage/sqlite/sqlite-storage.go
@@
-187,6
+187,9
@@
func NewPiecesStorage(opts NewPiecesStorageOpts) (_ storage.ClientImplCloser, er
}
type NewPoolOpts struct {
+ // See https://www.sqlite.org/c3ref/open.html. NB: "If the filename is an empty string, then a
+ // private, temporary on-disk database will be created. This private database will be
+ // automatically deleted as soon as the database connection is closed."
Path string
Memory bool
NumConns int