[x] - Create a new directory src/syntax. The syntax directory should be responsible for holding all keywords, functions, operators etc... of the language
[x] - Move Keywords.ts into this directory
[x] - Create a new directory src/syntax/{driver}/functions/datetime/
[x] - Create a file in here src/syntax/{driver}/functions/datetime/functions.ts
Note the {driver} part of the path. This can be any valid driver supported by sql-lint, for now, just do mysql.
On columns that specify a
datetime
ordate
, warn of an invalid date. We should also do this on date and time functions,Sample output:
See the list here: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html
src/syntax
. Thesyntax
directory should be responsible for holding all keywords, functions, operators etc... of the languageKeywords.ts
into this directorysrc/syntax/{driver}/functions/datetime/
src/syntax/{driver}/functions/datetime/functions.ts
Note the
{driver}
part of the path. This can be any valid driver supported bysql-lint
, for now, just domysql
.