Skip to content

Commit

Permalink
added sap hana driver (initial version)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuesemann committed Feb 23, 2015
1 parent 9396d2a commit dc0d583
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
34 changes: 34 additions & 0 deletions drivers/src/java/scriptella/driver/hana/Driver.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright 2006-2012 The Scriptella Project Team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package scriptella.driver.hana;

import scriptella.jdbc.GenericDriver;

/**
* Scriptella Adapter for Hana database.
* <p>For configuration details and examples see <a href="package-summary.html">overview page</a>.
*
* @author Bodo Hüsemann
* @version 1.0
*/
public class Driver extends GenericDriver {
public static final String HANA_DRIVER_NAME = "com.sap.db.jdbc.Driver";


public Driver() {
loadDrivers(HANA_DRIVER_NAME);
}
}
31 changes: 31 additions & 0 deletions drivers/src/java/scriptella/driver/hana/package.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<body>
<a href="http://hana.sap.com/">SAP Hana Database</a> Driver Adapter for Scriptella.
<p>See <a href="../../jdbc/package-summary.html#package_description">Overview of JDBC package</a> for a description of common features and connection properties.</p>
<h2>General information</h2>
<table>
<tr>
<td><b>Driver class:</b></td><td><code>scriptella.driver.hana.Driver</code></td>
</tr>
<tr>
<td><b>URL:</b></td><td><code>jdbc:sap://<server>:<port>[/?<options>]</code></td>
</tr>
<tr>
<td><b>Runtime dependencies:</b></td><td><code>ngdbc5.jar</code></td>
</tr>
</table>
<h2>Driver Specific Properties</h2>
<table border="1">
<tr>
<th>Name</th>
<th>Description</th>
<th>Required</th>
</tr>
</table>

<h2>Examples</h2>
<code><pre>
&lt;connection driver="hana" url="jdbc:sap://myServer:30015/?autocommit=false" user="sa"&gt;
&lt;/connection&gt;
</pre></code>

</body>

0 comments on commit dc0d583

Please sign in to comment.