Set the maximum size for the database file storage
If max_size is 0, it means "no limit", in which case the database file size will be limited only by the database
capabilities / intrinsic limits.
If max_size has a higher limit than supported by the database, the max_size will be internally set to the limit supported by
the database.
The max_size will be internally truncated to a multiple of the database page size. If the page size is, for example, 4K,
setting a max size of 10K will effectively limit the database size to 8K to ensure it does not grow beyond the specified limit.
Attempting to set a limit that is less than the already used database file storage will NOT truncate the database, but won't allow the database to grow further in size (although writes might be still accepted within the already allocated space).
This value does not persist in the database. Each construction of this class must set the property again or it will use the default value.
| this | |
| max_size |
Max database file size, in bytes throws A Error |
|
true is configuration was successful, otherwise false and throws will be set. |