Interface DbHelper

All Known Implementing Classes:
DbHelper.NoOpHelper, DbHelper.SQLiteHelper

public interface DbHelper
Provides methods to configure database prior to data source initialization.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    No-op implementation of DbHelper for those databases that do not require any preparation before data source creation.
    static class 
    SQLite implementation of DbHelper, creates database path if needed.
  • Method Summary

    Modifier and Type
    Method
    Description
    static DbHelper
    init(DrillConfig config)
    Initializes DbHelper implementation based on SQLDialect.
    void
    Prepares database prior to data source configuration.
  • Method Details

    • init

      static DbHelper init(DrillConfig config)
      Initializes DbHelper implementation based on SQLDialect.
      Parameters:
      config - Metastore config
      Returns:
      DBHelper instance
    • prepareDatabase

      void prepareDatabase()
      Prepares database prior to data source configuration.