sql-love 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +6 -6
- package/package.json +1 -1
- package/src/SelectBuilder/SelectBuilder.spec.ts +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<img alt="SQL Love Logo" src="https://github.com/kensnyder/sql-love/raw/main/assets/sql-love-logo.png?v=0.9.
|
|
1
|
+
<img alt="SQL Love Logo" src="https://github.com/kensnyder/sql-love/raw/main/assets/sql-love-logo.png?v=0.9.4" width="250" height="208" />
|
|
2
2
|
|
|
3
3
|
# sql-love
|
|
4
4
|
|
|
5
|
-
[](https://npmjs.com/package/sql-love)
|
|
6
|
+
[](https://npmjs.com/package/sql-love)
|
|
7
|
+
[](https://github.com/kensnyder/sql-love/actions)
|
|
8
|
+
[](https://codecov.io/gh/kensnyder/sql-love)
|
|
9
|
+
[](https://opensource.org/licenses/ISC)
|
|
10
10
|
|
|
11
11
|
Classes for parsing and building SQL select queries in Node
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -600,7 +600,7 @@ describe('compileCount()', () => {
|
|
|
600
600
|
});
|
|
601
601
|
it('should handle a distinct', () => {
|
|
602
602
|
const query = new SelectBuilder('SELECT * FROM posts');
|
|
603
|
-
const { sql, bindings } = query.compileCount('DISTINCT group_id');
|
|
603
|
+
const { sql, bindings } = query.compileCount('mysql', 'DISTINCT group_id');
|
|
604
604
|
expect(trim(sql)).toBe(
|
|
605
605
|
'SELECT COUNT(DISTINCT group_id) AS found_rows FROM posts'
|
|
606
606
|
);
|