Package expert.os.harperdb
Class Server
java.lang.Object
expert.os.harperdb.Server
Represents a HarperDB server.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancreateDatabase(String database) Creates a new database in HarperDB with the specified name.booleancreateSchema(String schema) Create a schema to the databasecreateTable(String table) Starts the process of building a "create table" operation for a specific database.
-
Method Details
-
createSchema
Create a schema to the database- Parameters:
schema- the schema name- Returns:
- true if the schema was created, false otherwise
- Throws:
NullPointerException- if schema is null
-
createDatabase
Creates a new database in HarperDB with the specified name.- Parameters:
database- The name of the database to be created.- Returns:
- true if the database creation is successful; false otherwise.
- Throws:
NullPointerException- if the provided database name is null.HarperDBException- if there is an issue creating the database.
-
createTable
Starts the process of building a "create table" operation for a specific database.- Parameters:
table- The name of the new table.- Returns:
- A CreateTableBuilder instance to further configure the "create table" operation.
- Throws:
NullPointerException- if the provided schema is null.
-
template
-