-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
withSQLRowMode(mode: 'array' | 'object'): Client
Use it to switch the return type of client.querySQL() from JS array (indexable by position) to JS object (indexable by field name). "Hide" `client.withCodecs({sql_row: ...})` by renaming "sql_row" to "_private_sql_row". If there's ever a use-case to make it possible for users to overload how SQL rows are decoded beyond choosing between 'array' and 'object' we can rename it back to `sql_row`. But I do want to keep the door open to us potentially implementing a different codec API for "collection" types -- an API that would have better performance but look more low level. See [1] for details. [1] #1187 (comment)
- Loading branch information
1 parent
3db911b
commit 19aa7ac
Showing
6 changed files
with
127 additions
and
45 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
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