Zaid-Ajaj / Npgsql.FSharp.Analyzer

F# analyzer that provides embedded SQL syntax analysis, type-checking for parameters and result sets and nullable column detection when writing queries using Npgsql.FSharp.
MIT License
137 stars 9 forks source link

Support enum arrays #21

Closed francesconi closed 3 years ago

francesconi commented 3 years ago

Is your feature request related to a problem? Please describe.

Having a table where a columns data type is an enum array prevents the analyzer from working.

create type mood as enum ('happy');
create table foo (moods mood[]);

causes the following warning to be thrown

Error while connecting to the development database using the connection string from environment variable 'NPGSQL_FSHARP' or put the connection string in a file called 'NPGSQL_FSHARP' relative next your project or in your project root. Connection error: Unsupported datatype mood.