diff --git a/README.md b/README.md
index 6fdc85e..d006892 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# MySQL JDBC Driver for eXist-db
+# Microsoft MSSQL JDBC Driver for eXist-db
Loadable JDBC Driver for MySQL within eXist-db.
diff --git a/pom.xml b/pom.xml
index b5b09a2..98b2c78 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,12 +12,12 @@
org.exist-db
- exist-mysql-jdbc-driver
- 8.0.29
+ exist-mssql-jdbc-driver
+ 10.2.0.jre8
MySQL JDBC Driver
MySQL JDBC Driver for eXist-db
- https://exist-db.org/exist-db/jdbc/mysql
+ https://exist-db.org/exist-db/jdbc/mssql
eXist-db
@@ -33,14 +33,14 @@
- https://www.github.com/eXist-db/exist-mysql-jdbc-driver.git
- scm:git:https://www.github.com/eXist-db/exist-mysql-jdbc-driver.git
- scm:git:https://www.github.com/eXist-db/exist-mysql-jdbc-driver.git
+ https://www.github.com/eXist-db/exist-mssql-jdbc-driver.git
+ scm:git:https://www.github.com/eXist-db/exist-mssql-jdbc-driver.git
+ scm:git:https://www.github.com/eXist-db/exist-mssql-jdbc-driver.git
GitHub
- https://www.github.com/eXist-db/exist-mysql-jdbc-driver/issues
+ https://www.github.com/eXist-db/exist-mssql-jdbc-driver/issues
@@ -51,7 +51,7 @@
6.0.1
- https://exist-db.org/exist-db/jdbc/mysql
+ https://exist-db.org/exist-db/jdbc/mssql
@@ -60,10 +60,9 @@
exist-core
${exist.version}
-
- mysql
- mysql-connector-java
+ com.microsoft.sqlserver
+ mssql-jdbc
${project.version}
diff --git a/src/main/xar-resources/icon.png b/src/main/xar-resources/icon.png
index 50a3095..4fa1219 100644
Binary files a/src/main/xar-resources/icon.png and b/src/main/xar-resources/icon.png differ
diff --git a/src/main/xquery/mysql-module.xqm b/src/main/xquery/mssql-module.xqm
similarity index 69%
rename from src/main/xquery/mysql-module.xqm
rename to src/main/xquery/mssql-module.xqm
index cd79e56..0b7c47f 100644
--- a/src/main/xquery/mysql-module.xqm
+++ b/src/main/xquery/mssql-module.xqm
@@ -1,63 +1,63 @@
xquery version "3.1";
(:~
- : A module for performing SQL queries against MySQL Databases, returning XML representations of the result sets.
+ : A module for performing SQL queries against mssql Databases, returning XML representations of the result sets.
:)
-module namespace mysql = "https://exist-db.org/exist-db/ns/app/mysql";
+module namespace mssql = "https://exist-db.org/exist-db/ns/app/mssql";
import module namespace sql="http://exist-db.org/xquery/sql";
-declare variable $mysql:classpath := "com.mysql.cj.jdbc.Driver";
+declare variable $mssql:classpath := "com.microsoft.sqlserver.jdbc.SQLServerDriver";
(:~
- : Opens a connection to a MySQL Database
+ : Opens a connection to a mssql Database
: @param $url The JDBC connection URL
: @return an xs:long representing the connection handle
:)
-declare function mysql:get-connection($url as xs:string)
+declare function mssql:get-connection($url as xs:string)
as xs:long?
{
- sql:get-connection($mysql:classpath, $url)
+ sql:get-connection($mssql:classpath, $url)
};
(:~
- : Opens a connection to a MySQL Database
+ : Opens a connection to a mssql Database
: @param $url The JDBC connection URL
: @param $properties The JDBC database connection properties in the form <properties><property name="" value=""/></properties>
: @return an xs:long representing the connection handle
:)
-declare function mysql:get-connection($url as xs:string, $properties as element()?)
+declare function mssql:get-connection($url as xs:string, $properties as element()?)
as xs:long?
{
- sql:get-connection($mysql:classpath, $url, $properties)
+ sql:get-connection($mssql:classpath, $url, $properties)
};
(:~
- : Opens a connection to a MySQL Database
+ : Opens a connection to a mssql Database
: @param $url The JDBC connection URL
- : @param $username The MySQL database username
- : @param $password The MySQL database password
+ : @param $username The mssql database username
+ : @param $password The mssql database password
: @return an xs:long representing the connection handle
:)
-declare function mysql:get-connection($url as xs:string, $username as xs:string, $password as xs:string)
+declare function mssql:get-connection($url as xs:string, $username as xs:string, $password as xs:string)
as xs:long?
{
- sql:get-connection($mysql:classpath, $url, $username, $password)
+ sql:get-connection($mssql:classpath, $url, $username, $password)
};
(:~
- : Prepares a SQL statement against a MySQL db using the connection indicated by the connection handle.
+ : Prepares a SQL statement against a mssql db using the connection indicated by the connection handle.
: @param $handle The connection handle
: @param $sql-statement The SQL statement
: @return an xs:long representing the statement handle
:)
-declare function mysql:prepare($handle as xs:long, $sql-statement as xs:string)
+declare function mssql:prepare($handle as xs:long, $sql-statement as xs:string)
as xs:long?
{
sql:prepare($handle, $sql-statement)
};
(:~
- : Executes a SQL statement against a MySQL database.
+ : Executes a SQL statement against a mssql database.
: @param $connection-handle The connection handle
: @param $sql-statement The SQL statement
: @param $make-node-from-column-name
@@ -66,7 +66,7 @@ as xs:long?
: will be replaced by an underscore!)
: @return the results
:)
-declare function mysql:execute(
+declare function mssql:execute(
$connection-handle as xs:long,
$sql-statement as xs:string,
$make-node-from-column-name as xs:boolean
@@ -77,7 +77,7 @@ as element()?
};
(:~
- : Executes a prepared SQL statement against a MySQL database.
+ : Executes a prepared SQL statement against a mssql database.
: @param $connection-handle The connection handle
: @param $statement-handle The prepared statement handle
: @param $parameters Parameters for the prepared statement.
@@ -94,7 +94,7 @@ as element()?
: will be replaced by an underscore!)
: @return the results
:)
-declare function mysql:execute(
+declare function mssql:execute(
$connection-handle as xs:long,
$statement-handle as xs:long,
$parameters as element()?,
diff --git a/xar-assembly.xml b/xar-assembly.xml
index 3622557..44c27ca 100644
--- a/xar-assembly.xml
+++ b/xar-assembly.xml
@@ -2,7 +2,7 @@
${package-title}
- My Organisation
+ eXist-db
${project.url}
GNU Lesser General Public License, version 2.1
true
@@ -41,10 +41,10 @@
- https://exist-db.org/exist-db/ns/app/mysql
+ https://exist-db.org/exist-db/ns/app/mssql
${basedir}/src/main/xquery
- mysql-module.xqm
+ mssql-module.xqm
content
@@ -57,10 +57,9 @@
${project.artifactId}
${project.version}
-
- mysql
- mysql-connector-java
+ com.microsoft.sqlserver
+ mssql-jdbc
${project.version}