Skip to content

Change from Param = String to Param = Foreign. #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 11, 2018
Merged

Conversation

Dretch
Copy link
Contributor

@Dretch Dretch commented Nov 11, 2018

This is necessary to allow passing Node Buffer objects as params.

One downside is that this arguably makes the API even less type-safe, but at least it also makes the parameter types more consistent with the query return type (Array Foreign).

Right now I have a type-safe API at a higher level (in purescript-querydsl), but I guess purescript-node-sqlite3 could have a type-safe API too.

This is necessary to allow passing Node Buffer objects as params.
@justinwoo
Copy link
Owner

Oh, right. Yeah, params should always have been Foreign, just that I was lazy about it

@Dretch Dretch merged commit 7fee270 into master Nov 11, 2018
@Dretch Dretch deleted the foreign-params branch November 11, 2018 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants