-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d4c582
commit 2c71519
Showing
37 changed files
with
150 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
# -*- coding: utf-8 -*- | ||
# @Author: chunyang.xu | ||
# @Author: longfengpili | ||
# @Date: 2023-06-02 15:27:41 | ||
# @Last Modified by: chunyang.xu | ||
# @Last Modified time: 2023-07-26 18:04:59 | ||
# @Last Modified by: longfengpili | ||
# @Last Modified time: 2023-07-27 15:33:34 | ||
# @github: https://github.com/longfengpili | ||
|
||
|
||
from .colmodel import ColumnModel, ColumnsModel | ||
|
||
__all__ = ['ColumnModel', 'ColumnsModel'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# @Author: chunyang.xu | ||
# @Email: [email protected] | ||
# @Date: 2020-06-10 14:14:53 | ||
# @Last Modified time: 2022-08-11 11:56:34 | ||
# -*- coding: utf-8 -*- | ||
# @Author: longfengpili | ||
# @Date: 2023-07-26 17:46:27 | ||
# @Last Modified by: longfengpili | ||
# @Last Modified time: 2023-07-27 15:38:28 | ||
# @github: https://github.com/longfengpili | ||
|
||
# !/usr/bin/env python3 | ||
# -*- coding:utf-8 -*- | ||
|
||
import re | ||
import os | ||
|
@@ -17,8 +16,10 @@ | |
|
||
# logging settings | ||
USERPATH = os.environ['USERPROFILE'] if 'USERPROFILE' in os.environ else os.environ['HOME'] if 'HOME' in os.environ else '' | ||
LOG_BASE_PATH = os.path.join(USERPATH, '.pydbapilog') # 可以user目录下查看日志 | ||
LOG_BASE_PATH = os.path.join(USERPATH, 'snapilog') # 可以user目录下查看日志 | ||
PROJECT_NAME = re.sub(':?\\\\', '_', os.getcwd()) | ||
PROJECT_NAME = PROJECT_NAME[1:] if PROJECT_NAME.startswith('/') else PROJECT_NAME # linux | ||
|
||
LOGGING_CONFIG = { | ||
'version': 1, # 保留字 | ||
'disable_existing_loggers': False, # 禁用已经存在的logger实例 | ||
|
@@ -62,7 +63,7 @@ | |
'level': 'DEBUG', | ||
'filters': [], | ||
'class': 'logging.StreamHandler', # | ||
'formatter': 'color' if sys.stdout.isatty() else 'simple' | ||
'formatter': 'color' if sys.stdout.isatty() or any("jupyter" in arg for arg in sys.argv) else 'simple' | ||
}, | ||
# 默认的 | ||
'default': { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# @Author: chunyang.xu | ||
# @Email: [email protected] | ||
# @Date: 2020-06-03 10:31:36 | ||
# @Last Modified time: 2021-02-01 19:18:38 | ||
# -*- coding: utf-8 -*- | ||
# @Author: longfengpili | ||
# @Date: 2023-06-02 15:27:41 | ||
# @Last Modified by: longfengpili | ||
# @Last Modified time: 2023-07-27 15:35:17 | ||
# @github: https://github.com/longfengpili | ||
|
||
# !/usr/bin/env python3 | ||
# -*- coding:utf-8 -*- | ||
|
||
from .parse import SqlParse, SqlFileParse | ||
from .compile import SqlCompile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
# @Author: chunyang.xu | ||
# @Email: [email protected] | ||
# @Date: 2020-06-03 14:04:33 | ||
# @Last Modified time: 2022-08-11 14:59:26 | ||
# -*- coding: utf-8 -*- | ||
# @Author: longfengpili | ||
# @Date: 2023-06-02 15:27:41 | ||
# @Last Modified by: longfengpili | ||
# @Last Modified time: 2023-07-27 15:35:21 | ||
# @github: https://github.com/longfengpili | ||
|
||
# !/usr/bin/env python3 | ||
# -*- coding:utf-8 -*- | ||
|
||
|
||
from pydbapi.col import ColumnsModel | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# @Author: chunyang.xu | ||
# @Email: [email protected] | ||
# @Date: 2020-06-03 10:51:08 | ||
# @Last Modified time: 2023-02-10 15:17:36 | ||
# -*- coding: utf-8 -*- | ||
# @Author: longfengpili | ||
# @Date: 2023-06-02 15:27:41 | ||
# @Last Modified by: longfengpili | ||
# @Last Modified time: 2023-07-27 15:35:15 | ||
# @github: https://github.com/longfengpili | ||
|
||
#!/usr/bin/env python3 | ||
# -*- coding:utf-8 -*- | ||
|
||
import re | ||
import os | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# @Author: chunyang.xu | ||
# @Author: longfengpili | ||
# @Date: 2023-06-02 15:27:41 | ||
# @Last Modified by: chunyang.xu | ||
# @Last Modified time: 2023-07-26 18:19:23 | ||
# @Last Modified by: longfengpili | ||
# @Last Modified time: 2023-07-27 15:42:45 | ||
# @github: https://github.com/longfengpili |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
/* | ||
* @Author: chunyang.xu | ||
* @Date: 2020-06-04 17:57:10 | ||
* @Email: [email protected] | ||
* @Last Modified time: 2020-06-28 14:18:55 | ||
* @Author: longfengpili | ||
* @Date: 2023-06-02 15:27:41 | ||
* @Last Modified by: longfengpili | ||
* @Last Modified time: 2023-07-27 15:41:50 | ||
*/ | ||
|
||
|
||
#【arguments】# | ||
date_min = '2020-02-12' | ||
date_max = '2020-02-13' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# @Author: chunyang.xu | ||
# @Author: longfengpili | ||
# @Date: 2023-06-02 15:27:41 | ||
# @Last Modified by: chunyang.xu | ||
# @Last Modified time: 2023-07-26 18:06:59 | ||
# @Last Modified by: longfengpili | ||
# @Last Modified time: 2023-07-27 15:42:35 | ||
# @github: https://github.com/longfengpili |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- coding: utf-8 -*- | ||
# @Author: chunyang.xu | ||
# @Author: longfengpili | ||
# @Date: 2023-06-02 15:27:41 | ||
# @Last Modified by: chunyang.xu | ||
# @Last Modified time: 2023-07-26 18:07:35 | ||
# @Last Modified by: longfengpili | ||
# @Last Modified time: 2023-07-27 15:42:30 | ||
# @github: https://github.com/longfengpili |
Oops, something went wrong.