-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: add support for fully-programmatic data sources (#24)
Allow a caller to hook up databases that do not require use of the database/sql package directly. The substance of the change is to add Queryable and RowSet interfaces, and to rework the query plumbing to use them. Existing use of *sql.DB is shimmed with a wrapper implementing Queryable. I wanted to use a generic interface so that a shim would not be needed, but this turned out to be more trouble than it was worth, since it infects the rest of the package with type parameters. It was (much) simpler to use the wrapper.
- Loading branch information
1 parent
6fb9904
commit f453151
Showing
7 changed files
with
193 additions
and
72 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
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
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
Oops, something went wrong.