Skip to content

Commit

Permalink
Add coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
brombal committed Jan 19, 2024
1 parent 98621f8 commit ebd6fda
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ jobs:
- name: Run Tests
run: npm test

- name: Coveralls
uses: coverallsapp/github-action@v2
with:
path-to-lcov: ./coverage/lcov.info
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

![Build status](https://github.com/brombal/sqltags/actions/workflows/build-test.yml/badge.svg?branch=main)
[![npm version](https://badge.fury.io/js/@sqltags%2Fcore.svg)](https://badge.fury.io/js/@sqltags/core)
[![Coverage Status](https://coveralls.io/repos/github/brombal/sqltags/badge.svg?branch=main)](https://coveralls.io/github/brombal/sqltags?branch=main)
[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)

🔧✨ Safely create & execute parameterized SQL queries using tagged template strings.

Expand Down Expand Up @@ -93,17 +95,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.
Expand Down
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sqltags/core",
"version": "0.0.19",
"version": "0.0.20",
"description": "Safely create & execute parameterized SQL queries using template strings 🔧✨ minimal API and works with any db driver (pg, mysql, sqlite, etc).",
"license": "MIT",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion drivers/mysql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sqltags/mysql",
"version": "0.0.19",
"version": "0.0.20",
"description": "MySQL driver for sqltags (@sqltags/core) 🔧✨ Safely create & execute parameterized SQL queries using template strings",
"license": "MIT",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion drivers/postgres/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sqltags/pg",
"version": "0.0.19",
"version": "0.0.20",
"description": "PostgreSQL driver for SqlTags (@sqltags/core) 🔧✨ Safely create & execute parameterized SQL queries using template strings",
"license": "MIT",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion drivers/sqlite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sqltags/sqlite",
"version": "0.0.19",
"version": "0.0.20",
"description": "SQLite driver for sqltags (@sqltags/core) 🔧✨ Safely create & execute parameterized SQL queries using template strings",
"license": "MIT",
"author": {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ebd6fda

Please sign in to comment.