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
Copy file name to clipboardExpand all lines: content/en/docs/appstore/use-content/platform-supported-content/modules/database-connector-mx10.md
+48-2Lines changed: 48 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,12 @@ If you need to connect to other database types, check out the [Database Connecto
31
31
32
32
### Features {#features}
33
33
34
+
{{% alert color="info" %}}
35
+
36
+
From [Studio Pro 10.19](/releasenotes/studio-pro/10.19/), you can connect to any database by using the Java dependency specified by the user for the respective database. For more information, see the [Configure for Any Database](#byod) section below.
37
+
38
+
{{</alert>}}
39
+
34
40
This connector supports connections to the following database types:
35
41
36
42
* Microsoft SQL
@@ -39,8 +45,6 @@ This connector supports connections to the following database types:
39
45
* Oracle
40
46
* Snowflake – GA support from [Studio Pro 10.12](/releasenotes/studio-pro/10.12/) (Beta versions are available from [Studio Pro 10.10](/releasenotes/studio-pro/10.10/)). For more information, see [Configure the External Database Connector for Snowflake](/appstore/modules/snowflake/external-database-connector/)
41
47
42
-
If you are looking for another database type, follow the prompt to request support your database when you open the database connection wizard.
43
-
44
48
This connector supports the following statements:
45
49
46
50
*`SELECT`
@@ -210,3 +214,45 @@ To connect to PostgreSQL when the application is running in Mendix Cloud, follow
210
214
1. To configure SSL-based authentication in Mendix Cloud, add a CA certificate and client certificate for server configuration and the selected SSL mode. For more details, see the [Running in the Cloud](/howto/integration/use-a-client-certificate/#running-in-the-cloud) section of *Use a Client Certificate*.
211
215
2. After the client certificate has been added, double-click the client certificate and add the value `ClientCertificateIdentifier` to `Use Client Certificate for specific services`. This must match the value provided for the constant `ClientCertificateIdentifier`.
212
216
3. Add the required values to the constants created for DBSource, DBUsername, DBPassword, and ClientCertificateIdentifier.
217
+
218
+
## Configure for Any Database {#byod}
219
+
220
+
### Prerequisites
221
+
222
+
* Ensure you have the appropriate Java Database Connectivity (JDBC) JAR file for the specific database.
223
+
* Gather the external connection details, including login credentials and the JDBC connection string.
224
+
225
+
### Connect to the Database
226
+
227
+
1. Open the module settings and add the JDBC JAR File.
228
+
229
+
* Alternatively, place the downloaded JAR file in the userlib folder of your application.
230
+
231
+
2. Run the app with the latest version of the External Database Connector.
232
+
233
+
3. Create a New External Database Connection.
234
+
4. Open the connection settings and under Database Type, select **Other**.
235
+
5. Enter the login credentials and JDBC connection string.
236
+
6. Click **Test Connection** to ensure the database connection is successful.
237
+
7. Click **Save** to save the connection details.
238
+
239
+
### Configure Database Schema Information
240
+
241
+
The Browse Database Schema tab might not display a comprehensive overview of all available schemas for certain databases. You can customize this behavior using the Configure option. To do so, follow these steps:
242
+
243
+
1. Open the **App** menu and select **Deploy for Eclipse**.
244
+
2. Extend the class MxQueryBasedSchemaInfoProvider.
245
+
3. Override the following methods based on your requirements:
246
+
* getTableMetaDataQuery
247
+
* getViewMetaDataQuery
248
+
* getProcedureMetaDataQuery
249
+
* getFunctionMetaDataQuery
250
+
4. Use the provided example, MxDb2SchemaInfoProvider for IBM Db2, for a better understanding of how to customize the schema information.
251
+
252
+
### Running Queries and Handling Query Responses
253
+
254
+
Execute queries as you would with supported databases, and retrieve responses in the associated entity. Refer to the documentation of your specific JDBC library for detailed syntax and execution options.
255
+
256
+
{{% alert color="info" %}}
257
+
By default, autocommit is set to false for design time queries.
0 commit comments