Package org.duckdb

Class DuckDBDatabase


  • public class DuckDBDatabase
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.ByteBuffer db_ref  
      static java.lang.String DEFAULT_SCHEMA
      Name of the DuckDB default schema.
      protected boolean read_only  
      protected java.lang.String url  
    • Constructor Summary

      Constructors 
      Constructor Description
      DuckDBDatabase​(java.lang.String url, boolean read_only, java.util.Properties props)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()  
      boolean isShutdown()  
      void shutdown()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_SCHEMA

        public static final java.lang.String DEFAULT_SCHEMA
        Name of the DuckDB default schema.
        See Also:
        Constant Field Values
      • url

        protected java.lang.String url
      • read_only

        protected boolean read_only
      • db_ref

        protected java.nio.ByteBuffer db_ref
    • Constructor Detail

      • DuckDBDatabase

        public DuckDBDatabase​(java.lang.String url,
                              boolean read_only,
                              java.util.Properties props)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
    • Method Detail

      • shutdown

        public void shutdown()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • isShutdown

        public boolean isShutdown()