From fd9b5ad91fc3b7eb170195e91a30dbe41dcee8c8 Mon Sep 17 00:00:00 2001 From: FullGreaM Date: Sat, 31 Jul 2021 20:10:52 +0300 Subject: [PATCH] up-date information about module --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index afa937b..eab8bdb 100644 --- a/README.md +++ b/README.md @@ -102,3 +102,17 @@ output... ```javascript [{'ID': 0, 'content': 'content 1'}, {'ID': 1, 'content': 'other content'}, {'ID': 2, 'content': 'Content number 3 :)'}, {'ID': 3, 'content': 'edited'}] ``` +### execute +This is important method from execute your SQL script in your code. +Using method **execute** in test code (from your simply, we used old date from last database). +```javascript +const sqlite = require('SQLEasy.js'); +var database = sqlite.database('/path/to/database'); + +var data = database.execute('SELECT * FROM table'); +console.log(data); +``` +output... +```javascript +[objecObject] +```