MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / createConnection

Method createConnection

src/jrd/extds/ExtDS.cpp:357–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357Connection* Provider::createConnection(thread_db* tdbb,
358 const PathName& dbName, ClumpletReader& dpb, TraScope tra_scope)
359{
360 Connection* conn = doCreateConnection();
361 conn->setup(dbName, dpb);
362 if (!conn->isCurrent())
363 conn->setCallbackRedirect(tdbb->getAttachment()->att_crypt_callback);
364
365 try
366 {
367 conn->attach(tdbb);
368 }
369 catch (...)
370 {
371 Connection::deleteConnection(tdbb, conn);
372 throw;
373 }
374
375 bindConnection(tdbb, conn);
376 return conn;
377}
378
379void Provider::bindConnection(thread_db* tdbb, Connection* conn)
380{

Callers 1

getConnectionMethod · 0.80

Calls 5

setCallbackRedirectMethod · 0.80
setupMethod · 0.45
isCurrentMethod · 0.45
getAttachmentMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected