cashapp / sqldelight

SQLDelight - Generates typesafe Kotlin APIs from SQL
https://cashapp.github.io/sqldelight/
Apache License 2.0
6.01k stars 501 forks source link

Add 5273 Postrgesql extract from temporal types #5274

Open griffio opened 1 month ago

griffio commented 1 month ago

fixes #5273

🚧 🕐 Extract Function https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-EXTRACT

Adds grammar Adds validate temporal types in resolver Adds fixture test Adds DATE and TIME literals as missing from grammar to include in EXTRACT

TODO: Create issue for DATE and TIME literals for change log visibility Merge this PR after https://github.com/cashapp/sqldelight/pull/5261 https://github.com/cashapp/sqldelight/pull/5228