Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
integrated-scheduling-v3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
虢奥
integrated-scheduling-v3
Commits
eecbb2f4
Commit
eecbb2f4
authored
Dec 02, 2021
by
张晓彤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改日志路径
parent
019d6854
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
tables.py
tables.py
+12
-12
No files found.
tables.py
View file @
eecbb2f4
...
...
@@ -27,18 +27,18 @@ with open(json_file) as f:
# 创建对象的基类:
Base
=
declarative_base
()
engine_mysql
=
create_engine
(
"mysql+mysqlconnector://root:
%
s@192.168.28.111:3306/waytous"
%
quote
(
"Huituo@123"
)
)
engine_postgre
=
create_engine
(
"postgresql://postgres:
%
s@192.168.28.111:5432/shenbao_2021520"
%
quote
(
"Huituo@123"
)
)
#
#
创建对象的基类:
#
Base = declarative_base()
#
#
engine_mysql = create_engine(
#
"mysql+mysqlconnector://root:%s@192.168.28.111:3306/waytous"
#
% quote("Huituo@123")
#
)
#
#
engine_postgre = create_engine(
#
"postgresql://postgres:%s@192.168.28.111:5432/shenbao_2021520"
#
% quote("Huituo@123")
#
)
# # 创建DBsession_mysql类型:
# DBsession_mysql = sessionmaker(bind=engine_mysql)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment