fknx / linqpad-postgresql-driver

LINQPad PostgreSQL Driver
MIT License
43 stars 17 forks source link

Add support for postgresql functions #9

Closed henrik-m closed 8 years ago

henrik-m commented 8 years ago

I have moved most of the type-generation specific code in "DynamicPostgreSqlDriver.cs" to "PostgreSqlTablesProvider.cs" to make room for an analogous "PostgreSqlFunctionsProvider" and keep classes at a manageable size but the code is otherwise unchanged.

With these changes merged in, the output for a PostgreSql database with tables and functions should be something like this: pgprovider_functions

PostgreSql functions can be called as strongly typed methods on the TypedDataContext in a similar fashion to the built-in driver for SqlServer. You can look at the tests to see what is supposed to work.

If you feel I should change something to get this merged in, I am open to suggestions. I can open another PR with squashed commits if you prefer, but I wanted to get the review done first in case I need to change something.

fknx commented 8 years ago

Thank you for your work! I'll try to look into it this weekend.

fknx commented 8 years ago

Thanks a lot and sorry for the delay! I'll create a new version asap.