]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Code comment
authorMatt Joiner <anacrolix@gmail.com>
Fri, 19 Feb 2021 01:37:26 +0000 (12:37 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 19 Feb 2021 01:37:26 +0000 (12:37 +1100)
storage/sqlite/sqlite-storage.go

index 97f7181a8500cd6f6be23d44dd90f7e69937a973..1eb4b0fe6f95c9e2800315d2fee986120d890b87 100644 (file)
@@ -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