@rwillians/qx 0.1.13 → 0.1.14

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.
@@ -508,7 +508,7 @@ exports.connect = connect;
508
508
  /**
509
509
  * @public An in-memory database connection.
510
510
  * @since 0.1.12
511
- * @version 1
511
+ * @version 2
512
512
  */
513
- const inmemory = connect(':memory:');
513
+ const inmemory = () => connect(':memory:');
514
514
  exports.inmemory = inmemory;
@@ -504,9 +504,9 @@ const connect = (...args) => new BunSQLite(new Database(...args));
504
504
  /**
505
505
  * @public An in-memory database connection.
506
506
  * @since 0.1.12
507
- * @version 1
507
+ * @version 2
508
508
  */
509
- const inmemory = connect(':memory:');
509
+ const inmemory = () => connect(':memory:');
510
510
  // // // // // // // // // // // // // // // // // // // // // // // //
511
511
  // EXPORTS //
512
512
  // // // // // // // // // // // // // // // // // // // // // // // //
@@ -53,7 +53,7 @@ declare const connect: (...args: ConstructorParameters<typeof Database>) => BunS
53
53
  /**
54
54
  * @public An in-memory database connection.
55
55
  * @since 0.1.12
56
- * @version 1
56
+ * @version 2
57
57
  */
58
- declare const inmemory: BunSQLite;
58
+ declare const inmemory: () => BunSQLite;
59
59
  export { connect, inmemory, };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rwillians/qx",
3
3
  "description": "A teeny tiny ORM for SQLite.",
4
- "version": "0.1.13",
4
+ "version": "0.1.14",
5
5
  "author": "Rafael Willians <me@rwillians.com>",
6
6
  "license": "MIT",
7
7
  "repository": {