b43f968b6c
- 在应用程序中新增对达梦数据库(DM)的配置和连接支持 - 实现 SetDmDB 函数以配置达梦数据库连接 - 更新数据库操作逻辑,支持达梦特有的 SQL 语法和功能 - 在相关文件中添加达梦数据库的处理逻辑,包括表创建、数据插入和查询 - 更新 go.mod 和 go.sum 文件以引入达梦数据库驱动 - 增强文档,详细说明达梦数据库的配置和使用方法
249 lines
5.9 KiB
Go
249 lines
5.9 KiB
Go
/*
|
|
* Copyright (c) 2000-2018, 达梦数据库有限公司.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
package i18n
|
|
|
|
const Messages_en_US = `{
|
|
"language": "en-US",
|
|
"messages": [
|
|
{
|
|
"id": "error.dsn.invalidSchema",
|
|
"translation": "DSN must start with dm://"
|
|
},
|
|
{
|
|
"id": "error.dsn.invalidFormat",
|
|
"translation": "DSN is invalid"
|
|
},
|
|
{
|
|
"id": "error.unsupported.scan",
|
|
"translation": "Unsupported scan type"
|
|
},
|
|
{
|
|
"id": "error.invalidParameterNumber",
|
|
"translation": "Invalid parameter number"
|
|
},
|
|
{
|
|
"id": "error.initThirdPartCipherFailed",
|
|
"translation": "Init third part cipher failed"
|
|
},
|
|
{
|
|
"id": "error.connectionSwitchFailed",
|
|
"translation": "Connection switch failed"
|
|
},
|
|
{
|
|
"id": "error.connectionSwitched",
|
|
"translation": "Connection has been switched"
|
|
},
|
|
{
|
|
"id": "error.invalidServerMode",
|
|
"translation": "Invalid server mode"
|
|
},
|
|
{
|
|
"id": "error.osauthError",
|
|
"translation": "At the same time using the specifed user login and OS authentication login, please determine a way."
|
|
},
|
|
{
|
|
"id": "error.notQuerySQL",
|
|
"translation": "The SQL is not a query SQL"
|
|
},
|
|
{
|
|
"id": "error.notExecSQL",
|
|
"translation": "The SQL is not a execute SQL"
|
|
},
|
|
{
|
|
"id": "error.invalidTranIsolation",
|
|
"translation": "invalid Transaltion Isolation"
|
|
},
|
|
{
|
|
"id": "errorCommitInAutoCommitMode",
|
|
"translation": "Can't commit in Auto commit status"
|
|
},
|
|
{
|
|
"id": "errorCommitInAutoCommitMode",
|
|
"translation": "Can't rollback in Auto commit status"
|
|
},
|
|
{
|
|
"id": "errorStatementHandleClosed",
|
|
"translation": "Statement handle is closed"
|
|
},
|
|
{
|
|
"id": "errorResultSetColsed",
|
|
"translation": "Resultset is closed"
|
|
},
|
|
{
|
|
"id": "error.communicationError",
|
|
"translation": "Communication error"
|
|
},
|
|
{
|
|
"id": "error.msgCheckError",
|
|
"translation": "Message check error"
|
|
},
|
|
{
|
|
"id": "error.unkownNetWork",
|
|
"translation": "Unkown net work"
|
|
},
|
|
{
|
|
"id": "error.serverVersion",
|
|
"translation": "Server version is too low"
|
|
},
|
|
{
|
|
"id": "error.usernameTooLong",
|
|
"translation": "Username is too long."
|
|
},
|
|
{
|
|
"id": "error.passwordTooLong",
|
|
"translation": "Password to login is too long."
|
|
},
|
|
{
|
|
"id": "error.dataTooLong",
|
|
"translation": "The data is too large to support."
|
|
},
|
|
{
|
|
"id": "error.invalidColumnType",
|
|
"translation": "Invalid column type"
|
|
},
|
|
{
|
|
"id": "error.dataConvertionError",
|
|
"translation": "Data convertion error"
|
|
},
|
|
{
|
|
"id": "error.invalidConn",
|
|
"translation": "Invalid connection"
|
|
},
|
|
{
|
|
"id": "error.invalidHex",
|
|
"translation": "Invalid Hex Number."
|
|
},
|
|
{
|
|
"id": "error.invalidBFile",
|
|
"translation": "Invalid BFile format string."
|
|
},
|
|
{
|
|
"id": "error.dataOverflow",
|
|
"translation": "Digital overflow"
|
|
},
|
|
{
|
|
"id": "error.invalidDateTimeFormat",
|
|
"translation": "Invalid datetime type format"
|
|
},
|
|
{
|
|
"id": "error.datetimeOverflow",
|
|
"translation": "Digital overflow"
|
|
},
|
|
{
|
|
"id": "error.invalidTimeInterval",
|
|
"translation": "Invalid time interval type value"
|
|
},
|
|
{
|
|
"id": "error.unsupportedInparamType",
|
|
"translation": "Unsupported input parameter type"
|
|
},
|
|
{
|
|
"id": "error.unsupportedOutparamType",
|
|
"translation": "Unsupported output parameter type"
|
|
},
|
|
{
|
|
"id": "error.unsupportedType",
|
|
"translation": "Not support this type"
|
|
},
|
|
{
|
|
"id": "error.invalidObjBlob",
|
|
"translation": "invalid Object Blob Data."
|
|
},
|
|
{
|
|
"id": "error.structMemNotMatch",
|
|
"translation": "Members are not matched in Record or Class"
|
|
},
|
|
{
|
|
"id": "error.invalidComplexTypeName",
|
|
"translation": "Invalid descriptor name."
|
|
},
|
|
{
|
|
"id": "error.invalidParamterValue",
|
|
"translation": "Invalid parameter value"
|
|
},
|
|
{
|
|
"id": "error.invalidArrayLen",
|
|
"translation": "the length of static array is bigger than the one when defined."
|
|
},
|
|
{
|
|
"id": "error.invalidSequenceNumber",
|
|
"translation": "Invalid sequence no"
|
|
},
|
|
{
|
|
"id": "error.resultsetInReadOnlyStatus",
|
|
"translation": "Resultset in readonly status"
|
|
},
|
|
{
|
|
"id": "error.SSLInitFailed",
|
|
"translation": "Failed to initialize SSL"
|
|
},
|
|
{
|
|
"id": "error.LobDataHasFreed",
|
|
"translation": "Lob Data has been freed"
|
|
},
|
|
{
|
|
"id": "error.fatalError",
|
|
"translation": "Fatal error"
|
|
},
|
|
{
|
|
"id": "error.invalidLenOrOffset",
|
|
"translation": "Invalid length or offset"
|
|
},
|
|
{
|
|
"id": "error.intervalValueOverflow",
|
|
"translation": "interval type value overflow"
|
|
},
|
|
{
|
|
"id": "error.invalidCipher",
|
|
"translation": "Invalid cipher type"
|
|
},
|
|
{
|
|
"id": "error.storeInNilPointer",
|
|
"translation": "Can't store value into a nil pointer"
|
|
},
|
|
{
|
|
"id": "error.batchError",
|
|
"translation": "Error in executing with batch"
|
|
},
|
|
{
|
|
"id": "warning.bpWithErr",
|
|
"translation": "Warning:Partial failure on execute with batch"
|
|
},
|
|
{
|
|
"id": "error.invalidSqlType",
|
|
"translation": "Invalid sql type"
|
|
},
|
|
{
|
|
"id": "error.invalidDateTimeValue",
|
|
"translation": "Invalid datetime value"
|
|
},
|
|
{
|
|
"id": "error.msgTooLong",
|
|
"translation": "Message too long, limit 512M"
|
|
},
|
|
{
|
|
"id": "error.isNull",
|
|
"translation": "Data is NULL"
|
|
},
|
|
{
|
|
"id": "error.ParamCountLimit",
|
|
"translation": "Parameter count limit is 65536."
|
|
},
|
|
{
|
|
"id": "error.unbindedParameter",
|
|
"translation": "Unbound parameter"
|
|
},
|
|
{
|
|
"id": "error.stringCut",
|
|
"translation": "The string is cut"
|
|
},
|
|
{
|
|
"id": "error.connectionClosedOrNotBuild",
|
|
"translation": "Connection is colsed or not build"
|
|
}
|
|
]
|
|
}`
|