@@ -128,7 +128,6 @@ void Connection::Init(Handle<Object> target)
128
128
Nan::SetPrototypeMethod (tpl, " commit" , Commit);
129
129
Nan::SetPrototypeMethod (tpl, " rollback" , Rollback);
130
130
Nan::SetPrototypeMethod (tpl, " break" , Break);
131
- Nan::SetPrototypeMethod (tpl, " getLob" , GetLob);
132
131
133
132
Nan::SetAccessor (tpl->InstanceTemplate (),
134
133
Nan::New<v8::String>(" stmtCacheSize" ).ToLocalChecked (),
@@ -3392,45 +3391,6 @@ v8::Local<v8::Value> Connection::NewLob(eBaton* executeBaton,
3392
3391
3393
3392
3394
3393
3395
- /* ****************************************************************************/
3396
- /*
3397
- DESCRIPTION
3398
- GetLob method on Connection class.
3399
-
3400
- PARAMETERS
3401
- none
3402
- RETURNS
3403
- A Lob object
3404
-
3405
- NOTES
3406
- Shows example method to call the Oracledb.newLob() method from a
3407
- Connection class method. That is, Connection.getLob() calls
3408
- Oracledb.newLob().
3409
-
3410
- This method is unused as we call Oracledb.newLob() from the C++
3411
- Connection::NewLob() method in Connection::GetValue(). This is much more
3412
- performant than going across language boundries twice to get a Lob.
3413
- */
3414
-
3415
- NAN_METHOD (Connection::GetLob)
3416
- {
3417
- Connection *connection = Nan::ObjectWrap::Unwrap<Connection>(info.This ());
3418
-
3419
- NJS_CHECK_OBJECT_VALID2 ( connection, info );
3420
-
3421
- Local<Object> jsOracledb = Nan::New<Object>(
3422
- connection->oracledb_ ->jsOracledb );
3423
- Local<Value> argv[1 ];
3424
-
3425
- Local<Value> result = Local<Function>::Cast (
3426
- jsOracledb->Get (
3427
- Nan::New<v8::String>(
3428
- " newLob" ).ToLocalChecked ()))->Call (
3429
- jsOracledb, 1 , argv);
3430
-
3431
- info.GetReturnValue ().Set (result);
3432
- }
3433
-
3434
3394
3435
3395
3436
3396
/* end of file njsConnection.cpp */
0 commit comments