Add H2 database support #114
                  
                    
                      ariel-avila
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
to have H2 running in TCP:
download JAR file: https://search.maven.org/remotecontent?filepath=com/h2database/h2/2.3.232/h2-2.3.232.jar
execute: java -cp ./h2-2.3.232.jar org.h2.tools.Server -tcpAllowOthers
if everything ok we will see:
TCP server running at tcp://:(others can connect)
PG server running at pg://:(only local connections)
Web Console server running at http://: (only local connections)
create a file:
we can connect using JDBC with this url:
idea for .devdbrc
[
{
"name": "H2 Connection",
"type": "h2",
"host": "jdbc:h2:tcp://",
"port": 9092,
"database": "/ path to database / test_db;DATABASE_TO_LOWER=TRUE"
"username": "sa",
"password": ""
}
]
Beta Was this translation helpful? Give feedback.
All reactions