-
Notifications
You must be signed in to change notification settings - Fork 3
/
sample-mssql.xml
51 lines (51 loc) · 2.15 KB
/
sample-mssql.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<!-- Microsoft SQL Server to YDB importer job configuration example -->
<ydb-importer>
<workers>
<pool size="4"/>
</workers>
<source type="mssql">
<jdbc-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</jdbc-class>
<jdbc-url>jdbc:sqlserver://localhost;encrypt=true;trustServerCertificate=true;database=AdventureWorks2022;</jdbc-url>
<username>sa</username>
<password>xeeFop6Tah0doh1+</password>
</source>
<target type="ydb">
<script-file>sample-mssql.yql.tmp</script-file>
<connection-string>grpc://localhost:2136?database=/Root/test</connection-string>
<!-- Custom TLS certificate file, if needed
<tls-certificate-file>ca.crt</tls-certificate-file>
-->
<!-- ENV, NONE, STATIC, METADATA, SAKEY -->
<auth-mode>NONE</auth-mode>
<!-- auth-mode: STATIC
<static-login>username</static-login>
<static-password>password</static-password>
-->
<!-- auth-mode: SAKEY
<sa-key-file>ydb-sa-keyfile.json</sa-key-file>
-->
<replace-existing>true</replace-existing>
<load-data>true</load-data>
<max-batch-rows>1000</max-batch-rows>
<max-blob-rows>200</max-blob-rows>
</target>
<table-options name="default">
<!-- ASIS, LOWER, UPPER -->
<case-mode>ASIS</case-mode>
<!-- Substitution values: ${schema}, ${table} -->
<table-name-format>mssql1/${schema}/${table}</table-name-format>
<!-- Substitution values: ${schema}, ${table}, ${field} -->
<blob-name-format>mssql1/${schema}/${table}_${field}</blob-name-format>
<!-- DATE, INT, STR -->
<conv-date>INT</conv-date>
<conv-timestamp>STR</conv-timestamp>
<skip-unknown-types>true</skip-unknown-types>
</table-options>
<table-map options="default">
<include-schemas regexp="true">.*</include-schemas>
<exclude-schemas>sys</exclude-schemas>
<exclude-schemas>INFORMATION_SCHEMA</exclude-schemas>
<!-- Possible extra tags: include-tables, exclude-tables, exclude-schemas -->
</table-map>
</ydb-importer>