Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SQLConnection {
- def getConnection(host: String, port: Integer, user: String, password: String, dbName: String, dbType: String) {
- DriverManager.getConnection("jdbc:" + dbType + "://" + host + ":" + port + "/" + dbName,
- user, password)
- }
- }
Add Comment
Please, Sign In to add comment