Finally the production ready release
Major
- The
sql``
tag not anymore return the function with text and values assigned. So if it's used with a native pgclient
instance, it's needed to add the function call building the query (#40)
From:
client.query(sql`...`)
To:
client.query(sql`...`())
But it's still not recommend to use the SQL tag directly with the native pg client.query
. Better use the manipulation and selection methods or sql.query()
which handles it, so no changes needed if using them:
sql.query(sql`...`)
Minor
- Added
sql.identifier()
for a better semantic usage escaping identifiers which are not tables or columns like trigger names (#40) - Added integration tests to ensure the library and migration script works with the native pg
client
instance and an actual database (#42 and #34)