initial commit

This commit is contained in:
i2p
2026-08-27 11:00:27 -06:00
commit 719b963520
94 changed files with 4747 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package browsers
import (
"database/sql"
"fmt"
_ "modernc.org/sqlite"
)
func GetDBConnection(database string) (*sql.DB, error) {
connection, err := sql.Open("sqlite", fmt.Sprintf("file:%s?mode=ro&immutable=1", database))
if err != nil {
return nil, err
}
return connection, nil
}