Class Server

java.lang.Object
expert.os.harperdb.Server

public final class Server extends Object
Represents a HarperDB server.
  • Method Details

    • createSchema

      public boolean createSchema(String schema)
      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

      public boolean createDatabase(String database)
      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

      public CreateTableBuilder createTable(String table)
      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

      public Template template(String database)