Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
openEuler-Advisor
提交
b3138eee
O
openEuler-Advisor
项目概览
openeuler
/
openEuler-Advisor
通知
36
Star
4
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openEuler-Advisor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b3138eee
编写于
7月 15, 2020
作者:
G
gongzt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Database initialization business logic changes
上级
56bd4d03
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
304 addition
and
935 deletion
+304
-935
packageship/packageship/application/initsystem/data_import.py
...ageship/packageship/application/initsystem/data_import.py
+217
-428
packageship/packageship/application/initsystem/datamerge.py
packageship/packageship/application/initsystem/datamerge.py
+0
-377
packageship/packageship/application/models/package.py
packageship/packageship/application/models/package.py
+87
-44
packageship/packageship/application/models/temporarydb.py
packageship/packageship/application/models/temporarydb.py
+0
-86
未找到文件。
packageship/packageship/application/initsystem/data_import.py
浏览文件 @
b3138eee
此差异已折叠。
点击以展开。
packageship/packageship/application/initsystem/datamerge.py
已删除
100644 → 0
浏览文件 @
56bd4d03
#!/usr/bin/python3
"""
Description: Integration of multiple sqlite file data, including reading
sqlite database and inserting data
Class: MergeData
"""
from
sqlalchemy.exc
import
SQLAlchemyError
from
packageship.application.models.temporarydb
import
src_package
from
packageship.application.models.temporarydb
import
src_requires
from
packageship.application.models.temporarydb
import
bin_package
from
packageship.application.models.temporarydb
import
bin_requiresment
from
packageship.application.models.temporarydb
import
bin_provides
from
packageship.application.models.package
import
maintenance_info
from
packageship.libs.dbutils
import
DBHelper
from
packageship.libs.log
import
Log
LOGGER
=
Log
(
__name__
)
class
MergeData
():
"""
Description: Load data from sqlite database
Attributes:
db_file: Database file
db_type: Connected database type
datum_database: Base database name
"""
def
__init__
(
self
,
db_file
):
"""
Description: Class instance initialization
Args:
db_file: Database file
"""
self
.
db_file
=
db_file
self
.
db_type
=
'sqlite:///'
self
.
datum_database
=
'maintenance.information'
self
.
src_requires_dicts
=
dict
()
self
.
src_package_datas
=
[]
self
.
bin_provides_dicts
=
dict
()
self
.
bin_package_datas
=
[]
self
.
mainter_infos
=
dict
()
self
.
bin_requires_dicts
=
dict
()
@
staticmethod
def
__columns
(
cursor
):
"""
Description: functional description:Returns all the column names
queried by the current cursor
Args:
cursor: Cursor
Returns:
The first columns
Raises:
"""
return
[
col
[
0
]
for
col
in
cursor
.
description
]
def
get_package_data
(
self
):
"""
Description: get binary package or source package data
Args:
Returns:
All source package data queried
Raises:
SQLAlchemyError: An error occurred while executing the sql statement
"""
try
:
with
DBHelper
(
db_name
=
self
.
db_file
,
db_type
=
self
.
db_type
,
import_database
=
True
)
\
as
database
:
src_packages_data
=
database
.
session
.
execute
(
"select pkgKey,name,version,rpm_license,url,rpm_sourcerpm from packages"
)
columns
=
MergeData
.
__columns
(
src_packages_data
.
cursor
)
return
[
dict
(
zip
(
columns
,
row
))
for
row
in
src_packages_data
.
fetchall
()]
except
SQLAlchemyError
as
sql_error
:
LOGGER
.
logger
.
error
(
sql_error
)
return
None
def
get_requires_data
(
self
):
"""
Description: get dependent package data of binary package or source package
Args:
Returns:
All dependent data queried
Raises:
SQLAlchemyError: An error occurred while executing the sql statement
"""
try
:
with
DBHelper
(
db_name
=
self
.
db_file
,
db_type
=
self
.
db_type
,
import_database
=
True
)
\
as
database
:
requires
=
database
.
session
.
execute
(
"select pkgKey,name from requires"
)
columns
=
MergeData
.
__columns
(
requires
.
cursor
)
return
[
dict
(
zip
(
columns
,
row
))
for
row
in
requires
.
fetchall
()]
except
SQLAlchemyError
as
sql_error
:
LOGGER
.
logger
.
error
(
sql_error
)
return
None
def
get_provides
(
self
):
"""
Description: get the dependency package provided by the binary package
Args:
Returns:
Query the component data provided by all binary packages
Raises:
SQLAlchemyError: An error occurred while executing the sql statement
"""
try
:
with
DBHelper
(
db_name
=
self
.
db_file
,
db_type
=
self
.
db_type
,
import_database
=
True
)
\
as
database
:
requires
=
database
.
session
.
execute
(
"select pkgKey,name from provides"
)
columns
=
MergeData
.
__columns
(
requires
.
cursor
)
return
[
dict
(
zip
(
columns
,
row
))
for
row
in
requires
.
fetchall
()]
except
SQLAlchemyError
as
sql_error
:
LOGGER
.
logger
.
error
(
sql_error
)
return
None
def
get_maintenance_info
(
self
):
"""
Description: Obtain the information of the maintainer
Args:
Returns:
Maintainer related information
Raises:
SQLAlchemyError: An error occurred while executing the sql statement
"""
try
:
if
not
hasattr
(
self
,
'mainter_infos'
):
self
.
mainter_infos
=
dict
()
with
DBHelper
(
db_name
=
self
.
datum_database
)
as
database
:
for
info
in
database
.
session
.
query
(
maintenance_info
).
all
():
if
info
.
name
not
in
self
.
mainter_infos
.
keys
():
self
.
mainter_infos
[
info
.
name
]
=
[]
self
.
mainter_infos
[
info
.
name
].
append
({
'version'
:
info
.
version
,
'maintaniner'
:
info
.
maintaniner
})
except
SQLAlchemyError
as
sql_error
:
LOGGER
.
logger
.
error
(
sql_error
)
def
src_file_merge
(
self
,
src_package_key
,
db_file
):
"""
Description: Source code related data integration
Args:
src_package_key: The relevant key value of the source package
db_file: Database file
Returns:
Key value after successful data combination
(0, False) or (src_package_key, True)
Raises:
SQLAlchemyError: An error occurred while executing the sql statement
"""
self
.
get_maintenance_info
()
self
.
__compose_src_package
()
self
.
__compose_src_rquires
()
# Combination of relationships between source packages and dependent packages
src_requires_data
=
[]
for
src_package_item
in
self
.
src_package_datas
:
src_package_key
+=
1
requires
=
self
.
src_requires_dicts
.
get
(
src_package_item
.
get
(
'pkgKey'
))
if
requires
:
for
src_requires_item
in
requires
:
src_requires_item
[
'pkgKey'
]
=
src_package_key
src_requires_data
.
append
(
src_requires_item
)
src_package_item
[
'pkgKey'
]
=
src_package_key
try
:
with
DBHelper
(
db_name
=
db_file
,
db_type
=
self
.
db_type
)
as
data_base
:
data_base
.
batch_add
(
self
.
src_package_datas
,
src_package
)
data_base
.
batch_add
(
src_requires_data
,
src_requires
)
except
SQLAlchemyError
as
sql_error
:
LOGGER
.
logger
.
error
(
sql_error
)
return
(
0
,
False
)
else
:
return
(
src_package_key
,
True
)
def
__compose_src_package
(
self
):
"""
Description: Combine source package data
Args:
Returns:
Raises:
"""
if
getattr
(
self
,
'src_package_datas'
,
None
)
is
None
:
self
.
src_package_datas
=
[]
for
src_package_item
in
self
.
get_package_data
():
src_package_name
=
src_package_item
.
get
(
'name'
)
if
src_package_name
:
# Find the maintainer information of the current data
maintenance_infos
=
self
.
mainter_infos
.
get
(
src_package_name
)
maintenance
=
[]
version
=
src_package_item
.
get
(
'version'
)
if
self
.
mainter_infos
.
get
(
src_package_name
):
for
maintenance_item
in
maintenance_infos
:
if
maintenance_item
.
get
(
'version'
)
==
version
:
maintenance
.
append
(
maintenance_item
)
self
.
src_package_datas
.
append
(
{
"name"
:
src_package_item
.
get
(
'name'
),
"version"
:
version
,
"rpm_license"
:
src_package_item
.
get
(
'rpm_license'
),
"url"
:
src_package_item
.
get
(
'url'
),
"pkgKey"
:
src_package_item
.
get
(
'pkgKey'
),
'maintaniner'
:
maintenance
[
0
].
get
(
'maintaniner'
)
if
maintenance
and
len
(
maintenance
)
>
0
else
None
}
)
def
__compose_src_rquires
(
self
):
"""
Description: Combine source package dependent package data
Args:
Returns:
Raises:
"""
if
getattr
(
self
,
'src_requires_dicts'
,
None
)
is
None
:
self
.
src_requires_dicts
=
dict
()
for
src_requires_item
in
self
.
get_requires_data
():
pkg_key
=
src_requires_item
.
get
(
'pkgKey'
)
if
pkg_key
:
if
pkg_key
not
in
self
.
src_requires_dicts
.
keys
():
self
.
src_requires_dicts
[
pkg_key
]
=
[]
self
.
src_requires_dicts
[
pkg_key
].
append
(
{
'name'
:
src_requires_item
.
get
(
'name'
),
'pkgKey'
:
pkg_key
}
)
def
__compose_bin_package
(
self
):
"""
Description: Combine binary package data
Args:
Returns:
Raises:
AttributeError
"""
if
getattr
(
self
,
'bin_package_datas'
,
None
)
is
None
:
self
.
bin_package_datas
=
[]
for
bin_package_item
in
self
.
get_package_data
():
try
:
src_package_name
=
bin_package_item
.
get
(
'rpm_sourcerpm'
).
split
(
'-'
+
bin_package_item
.
get
(
'version'
))[
0
]
except
AttributeError
as
exception_msg
:
src_package_name
=
None
LOGGER
.
logger
.
warning
(
exception_msg
)
else
:
self
.
bin_package_datas
.
append
(
{
"name"
:
bin_package_item
.
get
(
'name'
),
"version"
:
bin_package_item
.
get
(
'version'
),
"license"
:
bin_package_item
.
get
(
'rpm_license'
),
"sourceURL"
:
bin_package_item
.
get
(
'url'
),
"src_pack_name"
:
src_package_name
,
"pkgKey"
:
bin_package_item
.
get
(
'pkgKey'
)
}
)
def
__compose_bin_requires
(
self
):
"""
Description: Combining binary dependent package data
Args:
Returns:
Raises:
"""
if
getattr
(
self
,
'bin_requires_dicts'
,
None
)
is
None
:
self
.
bin_requires_dicts
=
dict
()
for
bin_requires_item
in
self
.
get_requires_data
():
pkg_key
=
bin_requires_item
.
get
(
'pkgKey'
)
if
pkg_key
:
if
pkg_key
not
in
self
.
bin_requires_dicts
.
keys
():
self
.
bin_requires_dicts
[
pkg_key
]
=
[]
self
.
bin_requires_dicts
[
pkg_key
].
append
({
'name'
:
bin_requires_item
.
get
(
'name'
),
'pkgKey'
:
0
})
def
__compose_bin_provides
(
self
):
"""
Description: Combine binary package data
Args:
Returns:
Raises:
"""
if
getattr
(
self
,
'bin_provides_dicts'
,
None
)
is
None
:
self
.
bin_provides_dicts
=
dict
()
for
bin_provides_item
in
self
.
get_provides
():
pkg_key
=
bin_provides_item
.
get
(
'pkgKey'
)
if
pkg_key
:
if
pkg_key
not
in
self
.
bin_provides_dicts
.
keys
():
self
.
bin_provides_dicts
[
pkg_key
]
=
[]
self
.
bin_provides_dicts
[
pkg_key
].
append
({
'name'
:
bin_provides_item
.
get
(
'name'
),
'pkgKey'
:
0
})
def
bin_file_merge
(
self
,
bin_package_key
,
db_file
):
"""
Description: Binary package related data integration
Args:
bin_package_key: Primary key of binary package
db_file: Database file
Returns:
Key value after successful data combination
(0, False) or (bin_package_key, True)
Raises:
SQLAlchemyError: An error occurred while executing the sql statement
"""
self
.
__compose_bin_package
()
# binary package dependent package integration
self
.
__compose_bin_requires
()
self
.
__compose_bin_provides
()
# integrate the id data of the binary package
bin_requires_datas
=
[]
bin_provides_datas
=
[]
for
bin_package_item
in
self
.
bin_package_datas
:
bin_package_key
+=
1
# dependent packages
requires
=
self
.
bin_requires_dicts
.
get
(
bin_package_item
.
get
(
'pkgKey'
))
if
requires
:
for
bin_requires_item
in
requires
:
bin_requires_item
[
'pkgKey'
]
=
bin_package_key
bin_requires_datas
.
append
(
bin_requires_item
)
provides
=
self
.
bin_provides_dicts
.
get
(
bin_package_item
.
get
(
'pkgKey'
))
if
provides
:
for
bin_provides_item
in
provides
:
bin_provides_item
[
'pkgKey'
]
=
bin_package_key
bin_provides_datas
.
append
(
bin_provides_item
)
bin_package_item
[
'pkgKey'
]
=
bin_package_key
# save binary package related data
try
:
with
DBHelper
(
db_name
=
db_file
,
db_type
=
self
.
db_type
)
as
data_base
:
data_base
.
batch_add
(
self
.
bin_package_datas
,
bin_package
)
data_base
.
batch_add
(
bin_requires_datas
,
bin_requiresment
)
data_base
.
batch_add
(
bin_provides_datas
,
bin_provides
)
except
SQLAlchemyError
as
sql_error
:
LOGGER
.
logger
.
error
(
sql_error
)
return
(
0
,
False
)
else
:
return
(
bin_package_key
,
True
)
packageship/packageship/application/models/package.py
浏览文件 @
b3138eee
...
...
@@ -3,32 +3,42 @@
Description: Database entity model mapping
"""
from
sqlalchemy
import
Column
,
Integer
,
String
,
ForeignKey
from
sqlalchemy.orm
import
relationship
from
packageship.libs.dbutils.sqlalchemy_helper
import
DBHelper
class
src_pack
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
Description: functional description:
Source package model
Source package model
"""
__tablename__
=
'src_pack'
id
=
Column
(
Integer
,
primary_key
=
True
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
version
=
Column
(
String
(
200
),
nullable
=
True
)
license
=
Column
(
String
(
500
),
nullable
=
True
)
sourceURL
=
Column
(
String
(
200
),
nullable
=
True
)
downloadURL
=
Column
(
String
(
200
),
nullable
=
True
)
Maintaniner
=
Column
(
String
(
50
),
nullable
=
True
)
MaintainLevel
=
Column
(
String
(
20
),
nullable
=
True
)
pkgKey
=
Column
(
Integer
,
primary_key
=
True
)
pkgId
=
Column
(
String
(
500
),
nullable
=
True
)
name
=
Column
(
String
(
200
),
nullable
=
True
)
arch
=
Column
(
String
(
200
),
nullable
=
True
)
version
=
Column
(
String
(
500
),
nullable
=
True
)
epoch
=
Column
(
String
(
200
),
nullable
=
True
)
release
=
Column
(
String
(
500
),
nullable
=
True
)
summary
=
Column
(
String
(
500
),
nullable
=
True
)
description
=
Column
(
String
(
500
),
nullable
=
True
)
url
=
Column
(
String
(
500
),
nullable
=
True
)
time_file
=
Column
(
Integer
,
nullable
=
True
)
time_build
=
Column
(
Integer
,
nullable
=
True
)
rpm_license
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_vendor
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_group
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_buildhost
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_sourcerpm
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_header_start
=
Column
(
Integer
,
nullable
=
True
)
rpm_header_end
=
Column
(
Integer
,
nullable
=
True
)
rpm_packager
=
Column
(
String
(
500
),
nullable
=
True
)
size_package
=
Column
(
Integer
,
nullable
=
True
)
size_installed
=
Column
(
Integer
,
nullable
=
True
)
size_archive
=
Column
(
Integer
,
nullable
=
True
)
location_href
=
Column
(
String
(
500
),
nullable
=
True
)
location_base
=
Column
(
String
(
500
),
nullable
=
True
)
checksum_type
=
Column
(
String
(
500
),
nullable
=
True
)
class
bin_pack
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
...
...
@@ -37,48 +47,81 @@ class bin_pack(DBHelper.BASE): # pylint: disable=C0103,R0903
"""
__tablename__
=
'bin_pack'
id
=
Column
(
Integer
,
primary_key
=
True
)
pkgKey
=
Column
(
Integer
,
primary_key
=
True
)
pkgId
=
Column
(
String
(
500
),
nullable
=
True
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
version
=
Column
(
String
(
200
),
nullable
=
True
)
srcIDkey
=
Column
(
Integer
,
ForeignKey
(
'src_pack.id'
))
src_pack
=
relationship
(
'src_pack'
,
backref
=
"bin_pack"
)
class
pack_requires
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
arch
=
Column
(
String
(
500
),
nullable
=
True
)
version
=
Column
(
String
(
500
),
nullable
=
True
)
epoch
=
Column
(
String
(
500
),
nullable
=
True
)
release
=
Column
(
String
(
500
),
nullable
=
True
)
summary
=
Column
(
String
(
500
),
nullable
=
True
)
description
=
Column
(
String
(
500
),
nullable
=
True
)
url
=
Column
(
String
(
500
),
nullable
=
True
)
time_file
=
Column
(
Integer
,
nullable
=
True
)
time_build
=
Column
(
Integer
,
nullable
=
True
)
rpm_license
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_vendor
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_group
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_buildhost
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_sourcerpm
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_header_start
=
Column
(
Integer
,
nullable
=
True
)
rpm_header_end
=
Column
(
Integer
,
nullable
=
True
)
rpm_packager
=
Column
(
String
(
500
),
nullable
=
True
)
size_package
=
Column
(
Integer
,
nullable
=
True
)
size_installed
=
Column
(
Integer
,
nullable
=
True
)
size_archive
=
Column
(
Integer
,
nullable
=
True
)
location_href
=
Column
(
String
(
500
),
nullable
=
True
)
location_base
=
Column
(
String
(
500
),
nullable
=
True
)
checksum_type
=
Column
(
String
(
500
),
nullable
=
True
)
src_name
=
Column
(
String
(
500
),
nullable
=
True
)
class
bin_requires
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
functional description:
Binary package dependent package entity model
"""
__tablename__
=
'
pack
_requires'
__tablename__
=
'
bin
_requires'
id
=
Column
(
Integer
,
primary_key
=
True
)
name
=
Column
(
String
(
200
),
nullable
=
True
)
flags
=
Column
(
String
(
200
),
nullable
=
True
)
epoch
=
Column
(
String
(
200
),
nullable
=
True
)
version
=
Column
(
String
(
500
),
nullable
=
True
)
release
=
Column
(
String
(
200
),
nullable
=
True
)
pkgKey
=
Column
(
Integer
,
nullable
=
True
)
pre
=
Column
(
String
(
20
),
nullable
=
True
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
# depProIDkey = Column(Integer, ForeignKey(
# 'pack_provides.id'), nullable=True)
depProIDkey
=
Column
(
Integer
)
srcIDkey
=
Column
(
Integer
,
ForeignKey
(
'src_pack.id'
),
nullable
=
True
)
class
src_requires
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
Source entity package dependent package entity model
"""
__tablename__
=
'src_requires'
binIDkey
=
Column
(
Integer
,
ForeignKey
(
'bin_pack.id'
),
nullable
=
True
)
id
=
Column
(
Integer
,
primary_key
=
True
)
name
=
Column
(
String
(
200
),
nullable
=
True
)
flags
=
Column
(
String
(
200
),
nullable
=
True
)
epoch
=
Column
(
String
(
200
),
nullable
=
True
)
version
=
Column
(
String
(
500
),
nullable
=
True
)
release
=
Column
(
String
(
200
),
nullable
=
True
)
pkgKey
=
Column
(
Integer
,
nullable
=
True
)
pre
=
Column
(
String
(
20
),
nullable
=
True
)
class
pack
_provides
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
class
bin
_provides
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
functional description:
Component entity model provided by binary package
"""
__tablename__
=
'
pack
_provides'
__tablename__
=
'
bin
_provides'
id
=
Column
(
Integer
,
primary_key
=
True
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
binIDkey
=
Column
(
Integer
,
ForeignKey
(
'bin_pack.id'
))
name
=
Column
(
String
(
200
),
nullable
=
True
)
flags
=
Column
(
String
(
200
),
nullable
=
True
)
epoch
=
Column
(
String
(
200
),
nullable
=
True
)
version
=
Column
(
String
(
500
),
nullable
=
True
)
release
=
Column
(
String
(
200
),
nullable
=
True
)
pkgKey
=
Column
(
Integer
,
nullable
=
True
)
class
maintenance_info
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
...
...
packageship/packageship/application/models/temporarydb.py
已删除
100644 → 0
浏览文件 @
56bd4d03
#!/usr/bin/python3
"""
Description: Database entity model mapping
"""
from
sqlalchemy
import
Column
,
Integer
,
String
from
packageship.libs.dbutils.sqlalchemy_helper
import
DBHelper
class
src_package
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
Description: Temporary source package model
"""
__tablename__
=
'src_package'
pkgKey
=
Column
(
Integer
,
primary_key
=
True
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
version
=
Column
(
String
(
200
),
nullable
=
True
)
rpm_license
=
Column
(
String
(
500
),
nullable
=
True
)
url
=
Column
(
String
(
200
),
nullable
=
True
)
maintaniner
=
Column
(
String
(
100
),
nullable
=
True
)
class
bin_package
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
Description: Temporary binary package model
"""
__tablename__
=
'bin_package'
pkgKey
=
Column
(
Integer
,
primary_key
=
True
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
version
=
Column
(
String
(
200
),
nullable
=
True
)
rpm_license
=
Column
(
String
(
500
),
nullable
=
True
)
url
=
Column
(
String
(
500
),
nullable
=
True
)
rpm_sourcerpm
=
Column
(
String
(
500
),
nullable
=
True
)
src_pack_name
=
Column
(
String
(
200
),
nullable
=
True
)
class
src_requires
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
Description: Temporary source package depends on package model
"""
__tablename__
=
'src_requires'
id
=
Column
(
Integer
,
primary_key
=
True
)
pkgKey
=
Column
(
Integer
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
class
bin_requiresment
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
Description: Dependency package model for temporary binary packages
"""
__tablename__
=
'bin_requiresment'
id
=
Column
(
Integer
,
primary_key
=
True
)
pkgKey
=
Column
(
Integer
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
class
bin_provides
(
DBHelper
.
BASE
):
# pylint: disable=C0103,R0903
"""
Description: Provided package model for temporary binary packages
"""
__tablename__
=
'bin_provides'
id
=
Column
(
Integer
,
primary_key
=
True
)
pkgKey
=
Column
(
Integer
)
name
=
Column
(
String
(
500
),
nullable
=
True
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录