@bungres/kit 0.1.0 → 0.1.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/dist/cli.js CHANGED
@@ -166,6 +166,9 @@ class SelectBuilder {
166
166
  then(onfulfilled, onrejected) {
167
167
  return this._executor.execute(this).then(onfulfilled, onrejected);
168
168
  }
169
+ async single() {
170
+ return this._executor.executeSingle(this);
171
+ }
169
172
  select(...columns) {
170
173
  this._select = columns;
171
174
  return this;
@@ -266,6 +269,9 @@ class InsertBuilder {
266
269
  then(onfulfilled, onrejected) {
267
270
  return this._executor.execute(this).then(onfulfilled, onrejected);
268
271
  }
272
+ async single() {
273
+ return this._executor.executeSingle(this);
274
+ }
269
275
  values(data) {
270
276
  const rows = Array.isArray(data) ? data : [data];
271
277
  this._values.push(...rows);
@@ -332,6 +338,9 @@ class UpdateBuilder {
332
338
  then(onfulfilled, onrejected) {
333
339
  return this._executor.execute(this).then(onfulfilled, onrejected);
334
340
  }
341
+ async single() {
342
+ return this._executor.executeSingle(this);
343
+ }
335
344
  set(data) {
336
345
  this._set = { ...this._set, ...data };
337
346
  return this;
@@ -386,6 +395,9 @@ class DeleteBuilder {
386
395
  then(onfulfilled, onrejected) {
387
396
  return this._executor.execute(this).then(onfulfilled, onrejected);
388
397
  }
398
+ async single() {
399
+ return this._executor.executeSingle(this);
400
+ }
389
401
  where(condition) {
390
402
  this._where.push(condition);
391
403
  return this;
package/dist/index.js CHANGED
@@ -163,6 +163,9 @@ class SelectBuilder {
163
163
  then(onfulfilled, onrejected) {
164
164
  return this._executor.execute(this).then(onfulfilled, onrejected);
165
165
  }
166
+ async single() {
167
+ return this._executor.executeSingle(this);
168
+ }
166
169
  select(...columns) {
167
170
  this._select = columns;
168
171
  return this;
@@ -263,6 +266,9 @@ class InsertBuilder {
263
266
  then(onfulfilled, onrejected) {
264
267
  return this._executor.execute(this).then(onfulfilled, onrejected);
265
268
  }
269
+ async single() {
270
+ return this._executor.executeSingle(this);
271
+ }
266
272
  values(data) {
267
273
  const rows = Array.isArray(data) ? data : [data];
268
274
  this._values.push(...rows);
@@ -329,6 +335,9 @@ class UpdateBuilder {
329
335
  then(onfulfilled, onrejected) {
330
336
  return this._executor.execute(this).then(onfulfilled, onrejected);
331
337
  }
338
+ async single() {
339
+ return this._executor.executeSingle(this);
340
+ }
332
341
  set(data) {
333
342
  this._set = { ...this._set, ...data };
334
343
  return this;
@@ -383,6 +392,9 @@ class DeleteBuilder {
383
392
  then(onfulfilled, onrejected) {
384
393
  return this._executor.execute(this).then(onfulfilled, onrejected);
385
394
  }
395
+ async single() {
396
+ return this._executor.executeSingle(this);
397
+ }
386
398
  where(condition) {
387
399
  this._where.push(condition);
388
400
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bungres/kit",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI toolkit for @bungres/orm — migrate, push, generate, pull",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "test": "bun test"
35
35
  },
36
36
  "dependencies": {
37
- "@bungres/orm": "0.1.0"
37
+ "@bungres/orm": "0.2.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "bun-types": "latest",