Create database
Create a database and connect to it.Create uses [wireprotocol-connect-attach] with p_operation
op_create
— 20
.
There are a number of DPB items to configure the newly created database, including page size (isc_dpb_page_size
) — which cannot be modified after creation.
The CREATE DATABASE
statement
Although Firebird has a CREATE DATABASE
statement, the documented syntax is not fully supported by Firebird server.Part of the syntax (e.g. database name, user, password, page size) are parsed by fbclient to execute the op_create
(or equivalent for embedded).
After the database is successfully created, fbclient then uses execute immediate (op_execute_immediate
) without transaction to execute a reduced CREATE DATABASE
statement for additional configuration of the database.