Class: JDBC::Adapters::Hsqldb
- Inherits:
- 
      Object
      
        - Object
- JDBC::Adapters::Hsqldb
 
- Defined in:
- lib/jdbc/adapters/hsqldb.rb
Instance Attribute Summary collapse
- 
  
    
      #host  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute host. 
- 
  
    
      #password  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute password. 
- 
  
    
      #port  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute port. 
- 
  
    
      #schema  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute schema. 
- 
  
    
      #user  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute user. 
Instance Method Summary collapse
- #class_name ⇒ Object
- #connection_string ⇒ Object
- 
  
    
      #initialize(host, port, user, password, schema, in_memory = false)  ⇒ Hsqldb 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Hsqldb. 
Constructor Details
#initialize(host, port, user, password, schema, in_memory = false) ⇒ Hsqldb
Returns a new instance of Hsqldb.
| 6 7 8 9 10 11 12 13 | # File 'lib/jdbc/adapters/hsqldb.rb', line 6 def initialize(host, port, user, password, schema, in_memory = false) @host = host @port = port @user = user @password = password @schema = schema @in_memory = in_memory end | 
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
| 4 5 6 | # File 'lib/jdbc/adapters/hsqldb.rb', line 4 def host @host end | 
#password ⇒ Object (readonly)
Returns the value of attribute password.
| 4 5 6 | # File 'lib/jdbc/adapters/hsqldb.rb', line 4 def password @password end | 
#port ⇒ Object (readonly)
Returns the value of attribute port.
| 4 5 6 | # File 'lib/jdbc/adapters/hsqldb.rb', line 4 def port @port end | 
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
| 4 5 6 | # File 'lib/jdbc/adapters/hsqldb.rb', line 4 def schema @schema end | 
#user ⇒ Object (readonly)
Returns the value of attribute user.
| 4 5 6 | # File 'lib/jdbc/adapters/hsqldb.rb', line 4 def user @user end | 
Instance Method Details
#class_name ⇒ Object
| 22 23 24 | # File 'lib/jdbc/adapters/hsqldb.rb', line 22 def class_name "org.hsqldb.jdbcDriver" end | 
#connection_string ⇒ Object
| 15 16 17 18 19 20 | # File 'lib/jdbc/adapters/hsqldb.rb', line 15 def connection_string str = "jdbc:hsqldb" str << ":mem" if @in_memory str << ":#{@schema}" str end |