dbtasker 3.0.0 → 3.0.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 +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -246,12 +246,12 @@ DBTASKER is available via npm.
|
|
|
246
246
|
|
|
247
247
|
Install it using either of the following commands:
|
|
248
248
|
```js
|
|
249
|
-
npm install
|
|
249
|
+
npm install dbtasker
|
|
250
250
|
```
|
|
251
251
|
|
|
252
252
|
or
|
|
253
253
|
```js
|
|
254
|
-
npm i
|
|
254
|
+
npm i dbtasker
|
|
255
255
|
```
|
|
256
256
|
Usage
|
|
257
257
|
|
|
@@ -268,10 +268,10 @@ DBTASKER handles the rest.
|
|
|
268
268
|
Create a JavaScript file (for example: index.js) and import DBTASKER.
|
|
269
269
|
```js
|
|
270
270
|
Using require (CommonJS)
|
|
271
|
-
const
|
|
271
|
+
const dbtasker = require("dbtasker");
|
|
272
272
|
|
|
273
273
|
Using import (ES Module)
|
|
274
|
-
import
|
|
274
|
+
import dbtasker from "dbtasker";
|
|
275
275
|
```
|
|
276
276
|
|
|
277
277
|
#### Step 2: Create a Configuration Object
|
|
@@ -326,7 +326,7 @@ DBTASKER supports multiple aliases for column keys and is case-insensitive.
|
|
|
326
326
|
|
|
327
327
|
Call DBTASKER by passing the config first, then the schema object.
|
|
328
328
|
```js
|
|
329
|
-
|
|
329
|
+
dbtasker(config, schema);
|
|
330
330
|
```
|
|
331
331
|
|
|
332
332
|
That’s it.
|
|
@@ -339,7 +339,7 @@ That’s it.
|
|
|
339
339
|
|
|
340
340
|
### Full Minimal Example
|
|
341
341
|
```js
|
|
342
|
-
const DBTASKER = require("
|
|
342
|
+
const DBTASKER = require("dbtasker");
|
|
343
343
|
|
|
344
344
|
const config = {
|
|
345
345
|
host: "localhost",
|