1 Star 0 Fork 0

彭明/dm

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
zzl.go 919 Bytes
Copy Edit Raw Blame History
彭明 authored 2024-04-10 13:53 +08:00 . DmDMS first init
/*
* Copyright (c) 2000-2018, 达梦数据库有限公司.
* All rights reserved.
*/
package dm
type StructDescriptor struct {
m_typeDesc *TypeDescriptor
}
func newStructDescriptor(fulName string, conn *DmConnection) (*StructDescriptor, error) {
sd := new(StructDescriptor)
if fulName == "" {
return nil, ECGO_INVALID_COMPLEX_TYPE_NAME.throw()
}
sd.m_typeDesc = newTypeDescriptorWithFulName(fulName, conn)
err := sd.m_typeDesc.parseDescByName()
if err != nil {
return nil, err
}
return sd, nil
}
func newStructDescriptorByTypeDescriptor(desc *TypeDescriptor) *StructDescriptor {
sd := new(StructDescriptor)
sd.m_typeDesc = desc
return sd
}
func (sd *StructDescriptor) getSize() int {
return sd.m_typeDesc.m_size
}
func (sd *StructDescriptor) getObjId() int {
return sd.m_typeDesc.m_objId
}
func (sd *StructDescriptor) getItemsDesc() []TypeDescriptor {
return sd.m_typeDesc.m_fieldsObj
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/sitkcn/dm.git
git@gitee.com:sitkcn/dm.git
sitkcn
dm
dm
v0.0.1

Search