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

Method fillDpb

src/jrd/svc.cpp:602–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602void Service::fillDpb(ClumpletWriter& dpb)
603{
604 dpb.insertString(isc_dpb_config, EMBEDDED_PROVIDERS, fb_strlen(EMBEDDED_PROVIDERS));
605 if (svc_address_path.hasData())
606 {
607 dpb.insertData(isc_dpb_address_path, svc_address_path);
608 }
609 if (svc_utf8)
610 {
611 dpb.insertTag(isc_dpb_utf8_filename);
612 }
613 if (svc_crypt_callback)
614 {
615 // That's not DPB-related, but anyway should be done before attach/create DB
616 ISC_STATUS_ARRAY status;
617 if (fb_database_crypt_callback(status, svc_crypt_callback) != 0)
618 {
619 status_exception::raise(status);
620 }
621 }
622 if (svc_remote_process.hasData())
623 {
624 dpb.insertString(isc_dpb_process_name, svc_remote_process);
625 }
626 if (svc_remote_pid)
627 {
628 dpb.insertInt(isc_dpb_process_id, svc_remote_pid);
629 }
630}
631
632bool Service::utf8FileNames()
633{

Callers 5

TDR_attach_databaseFunction · 0.45
buildDpbFunction · 0.45
gbakFunction · 0.45
attach_databaseMethod · 0.45
gsecFunction · 0.45

Calls 7

fb_strlenFunction · 0.85
raiseFunction · 0.85
insertDataMethod · 0.80
insertStringMethod · 0.45
hasDataMethod · 0.45
insertTagMethod · 0.45
insertIntMethod · 0.45

Tested by

no test coverage detected