SessionBaseNewDatabase Method |
Create a new Database with a given database number
Namespace:
VelocityDb.Session
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public virtual Database NewDatabase(
uint dbNum,
uint megaBytesPresize = 0,
string name = null,
bool signalError = true
)
Public Overridable Function NewDatabase (
dbNum As UInteger,
Optional megaBytesPresize As UInteger = 0,
Optional name As String = Nothing,
Optional signalError As Boolean = true
) As Database
public:
virtual Database^ NewDatabase(
unsigned int dbNum,
unsigned int megaBytesPresize = 0,
String^ name = nullptr,
bool signalError = true
)
abstract NewDatabase :
dbNum : uint32 *
?megaBytesPresize : uint32 *
?name : string *
?signalError : bool
(* Defaults:
let _megaBytesPresize = defaultArg megaBytesPresize 0
let _name = defaultArg name null
let _signalError = defaultArg signalError true
*)
-> Database
override NewDatabase :
dbNum : uint32 *
?megaBytesPresize : uint32 *
?name : string *
?signalError : bool
(* Defaults:
let _megaBytesPresize = defaultArg megaBytesPresize 0
let _name = defaultArg name null
let _signalError = defaultArg signalError true
*)
-> Database
Parameters
- dbNum
- Type: SystemUInt32
Database number of the database to create - megaBytesPresize (Optional)
- Type: SystemUInt32
If you know that the Database will be large, presizing it may avoid file fragmentation. Default value is 0 - name (Optional)
- Type: SystemString
Optionally name the new Database - signalError (Optional)
- Type: SystemBoolean
Optionally signal an error if creation of new Database fails
Return Value
Type:
DatabaseThe newly created
Database or throws and exception if the
Database already exist
See Also