/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


var connection = loadWithNewGlobal("lib/connection.js");
var output = loadWithNewGlobal("lib/output.js");


var myConnection = connection.init({
    sid: 'ORCL',
    username: 'hr',
    password: 'hr'
});


myConnection.ctx.write('Hello world\n');

output.setFileOutput(myConnection.ctx, 'D:\\oracle\\output.txt');

myConnection.sqlcl.setStmt("DDL departments");
myConnection.sqlcl.run();
@@ -180,17 +180,16 @@
 r.%0A */%0A%0A
-%0A
 var conn
@@ -212,24 +212,69 @@
 hNewGlobal(%22
+https://github.com/mennooo/sqlcl/blob/master/
 lib/connecti
@@ -314,16 +314,61 @@
 Global(%22
+https://github.com/mennooo/sqlcl/blob/master/
 lib/outp
@@ -377,17 +377,16 @@
 .js%22);%0A%0A
-%0A
 var myCo
@@ -475,17 +475,16 @@
 r'%0A%7D);%0A%0A
-%0A
 myConnec
@@ -521,75 +521,8 @@
 );%0A%0A
-output.setFileOutput(myConnection.ctx, 'D:%5C%5Coracle%5C%5Coutput.txt');%0A%0A
 myCo
@@ -549,23 +549,35 @@
 mt(%22
-DDL departmen
+select * from user_objec
 ts
+;
 %22);%0A
@@ -601,8 +601,9 @@
 l.run();
+%0A

Update demo1.js