Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit dc0d583

Browse files
committed
added sap hana driver (initial version)
1 parent 9396d2a commit dc0d583

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright 2006-2012 The Scriptella Project Team.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package scriptella.driver.hana;
17+
18+
import scriptella.jdbc.GenericDriver;
19+
20+
/**
21+
* Scriptella Adapter for Hana database.
22+
* <p>For configuration details and examples see <a href="package-summary.html">overview page</a>.
23+
*
24+
* @author Bodo Hüsemann
25+
* @version 1.0
26+
*/
27+
public class Driver extends GenericDriver {
28+
public static final String HANA_DRIVER_NAME = "com.sap.db.jdbc.Driver";
29+
30+
31+
public Driver() {
32+
loadDrivers(HANA_DRIVER_NAME);
33+
}
34+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<body>
2+
<a href="http://hana.sap.com/">SAP Hana Database</a> Driver Adapter for Scriptella.
3+
<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>
4+
<h2>General information</h2>
5+
<table>
6+
<tr>
7+
<td><b>Driver class:</b></td><td><code>scriptella.driver.hana.Driver</code></td>
8+
</tr>
9+
<tr>
10+
<td><b>URL:</b></td><td><code>jdbc:sap://<server>:<port>[/?<options>]</code></td>
11+
</tr>
12+
<tr>
13+
<td><b>Runtime dependencies:</b></td><td><code>ngdbc5.jar</code></td>
14+
</tr>
15+
</table>
16+
<h2>Driver Specific Properties</h2>
17+
<table border="1">
18+
<tr>
19+
<th>Name</th>
20+
<th>Description</th>
21+
<th>Required</th>
22+
</tr>
23+
</table>
24+
25+
<h2>Examples</h2>
26+
<code><pre>
27+
&lt;connection driver="hana" url="jdbc:sap://myServer:30015/?autocommit=false" user="sa"&gt;
28+
&lt;/connection&gt;
29+
</pre></code>
30+
31+
</body>

0 commit comments

Comments
 (0)