/
githubmirror
/
ydb-importer
Обзор
Документация
Войти
/
githubmirror
/
ydb-importer
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
scripts/sample-mssql.xml
52 строки
2 KB
Pavel Chichev
Rename pool to reader-pool in sample configs
07 май 2026, 16:20
07 май 2026, 16:20
1304d35
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <!-- Microsoft SQL Server to YDB importer job configuration example --> <ydb-importer> <workers> <reader-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_NEW, DATE, INT, STR --> <conv-date>DATE_NEW</conv-date> <conv-timestamp>DATE_NEW</conv-timestamp> <allow-custom-decimal>true</allow-custom-decimal> <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>