querybuilder icon indicating copy to clipboard operation
querybuilder copied to clipboard

Higher Order Extensions methods

Open ahmad-moussawi opened this issue 6 years ago • 2 comments

A list of higher order functions that should be added to SqlKata. These features will be added as an extension project

  • [ ] SelectCase, WhereCase, HavingCase, and GroupByCase support
  • [ ] WithDateRange(DateTime from, DateTime to, string alias = "DateRange")
  • [ ] WhereNullOrEmpty(col)
  • [ ] WhereNullOrValue(col, 5) --> WHERE ([col] IS NULL OR [col] = 5)
  • [ ] WithJson(string alias, string[] cols, string json), Read json array as CTE
  • [ ] WithData(string alias, string cols, List<List<object>> data)

Please add your request in the comment section.

ahmad-moussawi avatar Mar 12 '19 16:03 ahmad-moussawi

Hi @ahmad-moussawi

The Case support would be of great assistance. Do you have a timeline on when this will be completed?

PS. Loving SQLKata

Regards

johanndevilliers avatar Jun 27 '19 09:06 johanndevilliers

Is there an update here with the Case statements?

ghost avatar Jun 03 '20 16:06 ghost