@uql/sqlite
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"main": "index.js", | ||
@@ -25,3 +25,3 @@ "types": "index.d.ts", | ||
"@types/sqlite3": "^3.1.7", | ||
"@uql/core": "^0.4.5", | ||
"@uql/core": "^0.4.6", | ||
"copyfiles": "^2.4.1", | ||
@@ -28,0 +28,0 @@ "rimraf": "^3.0.2", |
@@ -247,5 +247,4 @@ [![build status](https://travis-ci.org/impensables/uql.svg?branch=master)](https://travis-ci.org/impensables/uql?branch=master) | ||
class ConfirmationService { | ||
@Transactional() | ||
async confirmAction(body: Confirmation,. @InjectQuerier() querier?: Querier): Promise<void> { | ||
async confirmAction(body: Confirmation, @InjectQuerier() querier?: Querier): Promise<void> { | ||
if (body.type === 'register') { | ||
@@ -271,3 +270,3 @@ const newUser: User = { | ||
// and when you call `confirmAction` function, all the operations there | ||
// will (automatically) run inside a single transaction | ||
// will (automatically) be run inside a single transaction | ||
await confirmationService.confirmAction(data); | ||
@@ -289,3 +288,3 @@ ``` | ||
```ts | ||
import { getQuerier } from '@uql/core'; | ||
import { getQuerier } from '@uql/core/querier'; | ||
@@ -380,4 +379,6 @@ async function confirmAction(confirmation: Confirmation): Promise<void> { | ||
```ts | ||
import { querier } from '@uql/client'; | ||
import { getQuerier } from '@uql/client'; | ||
const querier = await getQuerier(); | ||
// 'Item' is an entity class | ||
@@ -384,0 +385,0 @@ const lastItems = await querier.find(Item, { |
30214
396