Skip to content

Is SqlHydra a wrapper around Npgsql? (or: SqlHydra vs. Npgsql) #72

Answered by JordanMarr
toraritte asked this question in Q&A
Discussion options

You must be logged in to vote

Both SqlHydra and Npgsql.FSharp use the same underlying Npgsql provider library.

Here are a couple things that may help you decide:

SqlHydra will generate record types for your tables which you can use to create strongly typed queries using the query syntax. I personally like to have strongly typed entities to query against as it makes it harder to make mistakes. (Note that Npgsql.FSharp also has a separate query analyzer that will check your query.)

I suppose a side benefit is that you could still use SqlHydra if you changed database providers, but I've rarely ever needed to do that in all my years of software development.
 
OTOH, if you prefer to write your SQL queries manually, then Np…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@toraritte
Comment options

@JordanMarr
Comment options

Answer selected by toraritte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants