bun-query-builder 0.1.56 → 0.1.57
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/dist/bin/cli.js +1 -1
- package/dist/db.d.ts +9 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -31022,7 +31022,7 @@ function getPrefix() {
|
|
|
31022
31022
|
}
|
|
31023
31023
|
var prefix = getPrefix();
|
|
31024
31024
|
// package.json
|
|
31025
|
-
var version2 = "0.1.
|
|
31025
|
+
var version2 = "0.1.57";
|
|
31026
31026
|
|
|
31027
31027
|
// bin/cli.ts
|
|
31028
31028
|
init_actions();
|
package/dist/db.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { Database } from 'bun:sqlite';
|
|
2
2
|
import { SQL } from 'bun';
|
|
3
|
-
import type { PoolConfig } from './types';
|
|
3
|
+
import type { DatabaseConfig, PoolConfig, SupportedDialect } from './types';
|
|
4
4
|
export declare function splitSqlStatements(sql: string): string[];
|
|
5
|
+
/**
|
|
6
|
+
* Creates a database connection string based on the configured dialect and database settings.
|
|
7
|
+
*
|
|
8
|
+
* Exported so the `DB_*` env preference (see below) can be pinned by direct
|
|
9
|
+
* unit tests — the same pattern as `resolvePoolOptions`/`splitSqlStatements`.
|
|
10
|
+
* It is not re-exported from `src/index.ts`, so it stays internal.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createConnectionString(dialect: SupportedDialect, dbConfig: DatabaseConfig): string;
|
|
5
13
|
/**
|
|
6
14
|
* Map the qb-level `pool` config (ms-based, ergonomic) onto the Bun SQL
|
|
7
15
|
* driver's native option names (second resolution). Only the knobs Bun's
|
package/package.json
CHANGED