diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index a20cdf1..ac70992 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -22,7 +22,7 @@ jobs: sleep 5 - name: Run Tests - run: npm test + run: npm test && rm -rf ./data - name: Coveralls uses: coverallsapp/github-action@v2 diff --git a/README.md b/README.md index 401f7c9..3edb5d4 100644 --- a/README.md +++ b/README.md @@ -93,17 +93,17 @@ There are a number of existing libraries that provide similar functionality to S SqlTags because they all lacked some key feature or had a less-than-ideal API. Here are some comparisons with other popular libraries: -- **Postgres [https://www.npmjs.com/package/postgres]** +- **Postgres `https://www.npmjs.com/package/postgres`** - This excellent library was the main inspiration for SqlTags, but it only supports Postgres. - Personally, I found it confusing to have so many different ways to call the `sql()` function. SqlTags is more explicit with the features, using separate methods such as `sql.id()`, `sql.join()`, etc. -- **SQL Template Strings [https://npmjs.com/package/sql-template-strings]** -- **SQL Tag [https://npmjs.com/package/sql-tag]** -- **SQL Template Tag [https://npmjs.com/package/sql-template-tag]** -- **pg-template-tag [https://www.npmjs.com/package/pg-template-tag]** +- **SQL Template Strings `https://npmjs.com/package/sql-template-strings`** +- **SQL Tag `https://npmjs.com/package/sql-tag`** +- **SQL Template Tag `https://npmjs.com/package/sql-template-tag`** +- **pg-template-tag `https://www.npmjs.com/package/pg-template-tag`** - All these options have a more verbose API/syntax, requiring you to pass the result of the tag to a database driver function to execute the query. - Few or no utilities for building common SQL expressions or escaping identifiers.