brianc / node-sql

SQL generation for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

supports ifNotExists() in createindex.

seokgyo opened this issue · comments

Hi,

Postgresql 9.5 supports "IF NOT EXISTS" when creating index.
https://www.postgresql.org/docs/9.5/static/sql-createindex.html

Could you please add this feature to node-sql?

  • seokgyo

Also would like to see IF EXISTS for dropping indexes.

Postgresql 9.3 supports "IF EXISTS" when dropping an index.
https://www.postgresql.org/docs/9.3/static/sql-dropindex.html

I am actually needing this now for sqlite3.