You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To develop it locally, you need to setup your maven environment.
3
+
4
+
### Maven Installation
5
+
That's the easy part, you just need to download the Maven binaries and extract it somewhere, then put the maven/bin folder on your PATH.
6
+
7
+
https://maven.apache.org/install.html
8
+
9
+
*Don't forget to configure your JAVA_HOME environment variable.*
10
+
11
+
### Oracle Maven Repository
12
+
The library uses OJDBC Driver to connect to the database, it's added as a maven dependency. To be able to download the Oracle dependencies, you need to configure your access to Oracle's Maven Repository:
*Sections 6.1 and 6.5 are the more important ones, and the only ones you need if you're using the latest Maven version.*
17
+
18
+
### Local database with utPLSQL and utPLSQL-demo-project
19
+
20
+
To usefully contribute you'll have to setup a local database with installed [latest utPLSQL v3](https://github.com/utPLSQL/utPLSQL) and [utPLSQL-demo-project](https://github.com/utPLSQL/utPLSQL-demo-project).
21
+
The demo-project will serve as your test user. See .travis.yml to see an example on how it can be installed.
22
+
23
+
### Maven settings for utPLSQL-local profile
24
+
25
+
utPLSQL-java-api comes with a preconfigured profile "utPLSQL-local". This profile uses properties to set the correct
26
+
environment variables for DB_URL, DB_USER and DB_PASS which is needed to run the integration tests.
27
+
You can set these properties by adding the following to your Maven settings.xml:
28
+
29
+
```xml
30
+
<settings>
31
+
<!-- ... -->
32
+
<profiles>
33
+
<profile>
34
+
<id>utPLSQL-local</id>
35
+
<properties>
36
+
<dbUrl>localhost:1521/XE</dbUrl>
37
+
<dbUser>app</dbUser>
38
+
<dbPass>app</dbPass>
39
+
</properties>
40
+
</profile>
41
+
</profiles>
42
+
43
+
<activeProfiles>
44
+
<activeProfile>utPLSQL-local</activeProfile>
45
+
</activeProfiles>
46
+
</settings>
47
+
```
48
+
49
+
After configuring your access to Oracle's Maven repository, you will be able to successfully build this API.
50
+
51
+
```bash
52
+
cd utPLSQL-java-api
53
+
mvn clean package install
54
+
```
55
+
56
+
### Skip the local database part
57
+
58
+
If you want to skip the local database part, just run ``mvn clean package install -DskipTests``.
59
+
You will still be able to run ``mvn test`` because integration tests are run in the ``verify``-phase.
To develop it locally, you need to setup your maven environment.
80
-
81
-
### Maven Installation
82
-
That's the easy part, you just need to download the Maven binaries and extract it somewhere, then put the maven/bin folder on your PATH.
83
-
84
-
https://maven.apache.org/install.html
85
-
86
-
*Don't forget to configure your JAVA_HOME environment variable.*
85
+
### Optional Features
87
86
88
-
### Oracle Maven Repository
89
-
The library uses OJDBC Driver to connect to the database, it's added as a maven dependency. To be able to download the Oracle dependencies, you need to configure your access to Oracle's Maven Repository:
87
+
There might be some features which are not available in previous versions of utPLSQL. These "optional features" are listed in the enum org.utplsql.api.compatibility.OptionalFeatures and their availability can be checked against a connection or Version-object:
To usefully contribute you'll have to setup a local database with installed [latest utPLSQL v3](https://github.com/utPLSQL/utPLSQL) and [utPLSQL-demo-project](https://github.com/utPLSQL/utPLSQL-demo-project).
98
-
The demo-project will serve as your test user. See .travis.yml to see an example on how it can be installed.
105
+
### Reporter-Factory
99
106
100
-
### Maven settings for utPLSQL-local profile
107
+
The java-api provides a ReporterFactory you can use to inject your own implementations of (java-side) reporters or reporter-handlers.
108
+
It also provides a more generic approach to Reporter-handling.
101
109
102
-
utPLSQL-java-api comes with a preconfigured profile "utPLSQL-local". This profile uses properties to set the correct
103
-
environment variables for DB_URL, DB_USER and DB_PASS which is needed to run the integration tests.
104
-
You can set these properties by adding the following to your Maven settings.xml:
110
+
If you request the Reporter-Factory for a Reporter it has no specific implementation for it will just
111
+
return an instance of a `DefaultReporter` with the given name as SQL-Type, assuming
112
+
that it exists in the database. Therefore you can address custom reporters without the need
0 commit comments