-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Go 1.18, add SQLiteString.
Upgrade to Go 1.18, adding a go.mod and go.sum. Change all instances of `interface{}` to `any`. Update `Insert` to use generics so we no longer need to convert to a `[]pan.SQLTableNamer` before passing slices in, slices of any type that fills the `pan.SQLTableNamer` interface will now work. Should be backwards-compatible. It also has the benefit of enforcing that all values need to be of the same type, which was implied by the comment prior to this, so I'm not considering it a breaking change. Add an SQLiteString method to Query, returning a string that can be used for SQLite. Technically, this is the same as MySQLString. But it feels weird using MySQLString in SQLite code, and now if we discover any special handling we need to do for SQLite, we can just put it in this method. 🎵 Now Playing: Better Than That 🎵 Artist: Sub-Radio 🎵 Album: Better Than That
- Loading branch information
1 parent
10eec68
commit 7746bfd
Showing
4 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module darlinggo.co/pan | ||
|
||
go 1.18 | ||
|
||
require github.com/mattn/go-sqlite3 v1.14.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= | ||
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters