Result = OpenDatabase(#Database [, *DatabaseBuffer])
Opens or create a new database. If '*DatabaseBuffer' is not specified, a new empty database is created. A database is always created in memory.


#Database A number to identify the new database. #PB_Any can be used to auto-generate this number.
*DatabaseBuffer (optional) A memory buffer containing a SQLite database. The database will be initialized using the specified database data. ExportDatabaseMemory() can be used to get a raw memory buffer of a database.

Return value

Returns nonzero if the database has been successfully created, zero otherwise. Error information can be received with the DatabaseError() command. If #PB_Any was used for the #Database parameter, then the generated number is returned.

See Also

CloseDatabase(), ExportDatabaseMemory()

Supported OS


<- NextDatabaseRow() - Database Index - SetDatabaseBlob() ->