For Jaybird tests it makes sense to disable force write to achieve a performance improvement. Exposing the property in FBManager will make this generally available to all users of FBManager for database creation.
This change will add two methods to FBManager: Boolean getForceWrite() returning the current config, and void setForceWrite(Boolean). The default null will result in the Firebird default behaviour (enabling force write after database creation and initialization), false will disable force write and true will enable force write at database creation.
The difference between null and true is important, as using true will slow down database creation a bit, as force write will already be enabled during database initialization (this is only noticeable if you create a lot of databases, like the Jaybird test suite).
For Jaybird tests it makes sense to disable force write to achieve a performance improvement. Exposing the property in
FBManagerwill make this generally available to all users ofFBManagerfor database creation.This change will add two methods to
FBManager:Boolean getForceWrite()returning the current config, andvoid setForceWrite(Boolean). The defaultnullwill result in the Firebird default behaviour (enabling force write after database creation and initialization),falsewill disable force write andtruewill enable force write at database creation.The difference between
nullandtrueis important, as usingtruewill slow down database creation a bit, as force write will already be enabled during database initialization (this is only noticeable if you create a lot of databases, like the Jaybird test suite).