Allow to configure persistent database connections
This commit is contained in:
parent
65e4d23d89
commit
61f251d6ad
|
@ -113,6 +113,17 @@ class DbResourceForm extends Form
|
||||||
'description' => $this->translate('The password to use for authentication')
|
'description' => $this->translate('The password to use for authentication')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
$this->addElement(
|
||||||
|
'checkbox',
|
||||||
|
'persistent',
|
||||||
|
array(
|
||||||
|
'description' => $this->translate(
|
||||||
|
'Check this box for persistent database connections. Persistent connections are not closed at the'
|
||||||
|
. ' end of a request, but are cached and re-used. This is experimental'
|
||||||
|
),
|
||||||
|
'label' => $this->translate('Persistent')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue