squirreling 0.2.0 → 0.2.1
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/README.md +1 -0
- package/package.json +2 -2
- package/src/index.d.ts +5 -4
package/README.md
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
[](https://www.npmjs.com/package/squirreling)
|
|
8
8
|
[](https://github.com/hyparam/squirreling/actions)
|
|
9
9
|
[](https://opensource.org/licenses/MIT)
|
|
10
|
+

|
|
10
11
|
[](https://www.npmjs.com/package/squirreling?activeTab=dependencies)
|
|
11
12
|
|
|
12
13
|
Squirreling is a lightweight SQL engine for JavaScript applications, designed to provide efficient and easy-to-use database functionalities in the browser.
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ExecuteSqlOptions, SelectStatement } from './types.js'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Executes a SQL SELECT query against an array of data rows
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
7
|
-
* @param
|
|
6
|
+
* @param options
|
|
7
|
+
* @param options.source - source data as a list of objects or a DataSource
|
|
8
|
+
* @param options.sql - SQL query string
|
|
8
9
|
* @returns rows matching the query
|
|
9
10
|
*/
|
|
10
|
-
export function executeSql(
|
|
11
|
+
export function executeSql(options: ExecuteSqlOptions): Record<string, any>[]
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Parses a SQL query string into an abstract syntax tree
|