package
Version:
v1.8.0
Opens a new window with list of versions in this module.
Published: Sep 11, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package common 提供 examples 共用的小工具:从环境变量构造连接信息与错误退出。
Conn 从环境变量构造连接信息,变量名前缀 prefix(如 "SRC"、"TGT"):
{P}_TYPE(必填,mysql/postgresql/oracle)、{P}_HOST(必填)、{P}_PORT、
{P}_USER、{P}_PASSWORD、{P}_DBNAME
Fail 打印错误并退出(SvcError 额外输出错误码,演示按错误码分支处理,3.3)。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.