Class SqLiteJdbc


public class SqLiteJdbc extends JdbcConfig<SqLiteJdbc>
  • Constructor Details

    • SqLiteJdbc

      public SqLiteJdbc()
  • Method Details

    • memory

      public SqLiteJdbc memory()
      Sets the database to in-memory mode.

      This is the default setting.

      Returns:
      builder instance
    • path

      public SqLiteJdbc path(File file)
      Set the path of the db file
      Parameters:
      file - file
      Returns:
      builder instance
    • path

      public SqLiteJdbc path(Path path)
      Set the path of the db file
      Parameters:
      path - path
      Returns:
      builder instance
    • path

      public SqLiteJdbc path(String path)
      Set the path of the db file
      Parameters:
      path - path
      Returns:
      builder instance
    • defaultDriverClass

      protected String defaultDriverClass()
      Description copied from class: JdbcConfig
      Returns the full path of the driver class
      Specified by:
      defaultDriverClass in class JdbcConfig<SqLiteJdbc>
      Returns:
      driver class
    • driver

      public String driver()
      Description copied from class: JdbcConfig
      Returns the driver name of the jdbc url
      Specified by:
      driver in class JdbcConfig<SqLiteJdbc>
      Returns:
      driver
    • addParameter

      public <V> SqLiteJdbc addParameter(String key, V value)
      Add a new parameter to the url
      Overrides:
      addParameter in class JdbcConfig<SqLiteJdbc>
      Type Parameters:
      V - value type
      Parameters:
      key - key
      value - value
      Returns:
      builder instance
      See Also:
    • baseUrl

      protected String baseUrl()
      Description copied from class: JdbcConfig
      Returns the base url without parameter
      Specified by:
      baseUrl in class JdbcConfig<SqLiteJdbc>
      Returns:
      base url