Skip to content

Commit

Permalink
[优化]header
Browse files Browse the repository at this point in the history
  • Loading branch information
longfengpili committed Jul 26, 2023
1 parent 78c78c8 commit 29ae63a
Show file tree
Hide file tree
Showing 31 changed files with 262 additions and 311 deletions.
10 changes: 4 additions & 6 deletions pydbapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Email: [email protected]
# @Date: 2020-06-04 10:58:54
# @Last Modified time: 2022-08-11 15:09:09
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 18:06:21
# @github: https://github.com/longfengpili

# !/usr/bin/env python3
# -*- coding:utf-8 -*-

import os
import logging.config
from pydbapi.conf.settings import LOGGING_CONFIG
Expand Down
10 changes: 4 additions & 6 deletions pydbapi/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Email: [email protected]
# @Date: 2020-06-08 14:02:33
# @Last Modified time: 2022-11-18 14:58:11
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 17:49:13
# @github: https://github.com/longfengpili

#!/usr/bin/env python3
# -*- coding:utf-8 -*-

from .redshift import RedshiftDB, SqlRedshiftCompile
from .sqlite import SqliteDB, SqliteCompile
from .mysql import MysqlDB, SqlMysqlCompile
Expand Down
10 changes: 4 additions & 6 deletions pydbapi/api/mysql.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Email: [email protected]
# @Date: 2020-06-10 14:40:50
# @Last Modified time: 2022-08-11 10:05:16
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 17:49:58
# @github: https://github.com/longfengpili

# !/usr/bin/env python3
# -*- coding:utf-8 -*-

import re
import threading
import pymysql
Expand Down
11 changes: 4 additions & 7 deletions pydbapi/api/redshift.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Email: [email protected]
# @Date: 2020-06-10 14:40:50
# @Last Modified time: 2022-08-11 10:05:30
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 17:50:05
# @github: https://github.com/longfengpili

# !/usr/bin/env python3
# -*- coding:utf-8 -*-


import threading
import psycopg2

Expand Down
21 changes: 6 additions & 15 deletions pydbapi/api/snowflake.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# # @Author: chunyang.xu
# # @Email: [email protected]
# # @Date: 2020-10-22 16:12:47
# # @Last Modified time: 2022-08-11 10:05:28
# # @github: https://github.com/longfengpili

# # !/usr/bin/env python3
# # -*- coding:utf-8 -*-
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 18:05:45
# @github: https://github.com/longfengpili

# import threading
# import snowflake.connector
Expand All @@ -15,13 +13,6 @@
# from pydbapi.conf import AUTO_RULES


# import logging
# import logging.config
# from pydbapi.conf import LOGGING_CONFIG
# logging.config.dictConfig(LOGGING_CONFIG)
# sflogger = logging.getLogger('snowflake')


# class SqlSnowflakeCompile(SqlCompile):
# '''[summary]

Expand Down
10 changes: 4 additions & 6 deletions pydbapi/api/sqlite.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Email: [email protected]
# @Date: 2020-06-03 15:25:44
# @Last Modified time: 2022-08-11 10:05:25
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 18:04:44
# @github: https://github.com/longfengpili

# !/usr/bin/env python3
# -*- coding:utf-8 -*-

import os
import threading
import sqlite3
Expand Down
10 changes: 5 additions & 5 deletions pydbapi/api/trino.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# @Author: longfengpili
# @Date: 2022-11-14 14:17:02
# @Last Modified by: longfengpili
# @Last Modified time: 2023-01-13 11:25:26

# @Author: chunyang.xu
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 18:04:50
# @github: https://github.com/longfengpili

import re
import tqdm
Expand Down
6 changes: 3 additions & 3 deletions pydbapi/col/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Date: 2021-02-01 19:18:20
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2021-02-01 19:18:29

# @Last Modified time: 2023-07-26 18:04:59
# @github: https://github.com/longfengpili

from .colmodel import ColumnModel, ColumnsModel

Expand Down
11 changes: 4 additions & 7 deletions pydbapi/col/colmodel.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Email: [email protected]
# @Date: 2020-11-30 16:28:21
# @Last Modified time: 2023-06-08 10:30:28
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 18:05:10
# @github: https://github.com/longfengpili

# !/usr/bin/env python3
# -*- coding:utf-8 -*-


class ColumnModel(object):

def __init__(self, newname, coltype='varchar', sqlexpr=None, func=None, order=0, desc=None):
Expand Down
12 changes: 5 additions & 7 deletions pydbapi/conf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# -*- coding: utf-8 -*-
# @Author: chunyang.xu
# @Email: [email protected]
# @Date: 2020-06-10 12:18:59
# @Last Modified time: 2020-06-17 21:08:41
# @Date: 2023-06-02 15:27:41
# @Last Modified by: chunyang.xu
# @Last Modified time: 2023-07-26 18:05:23
# @github: https://github.com/longfengpili

#!/usr/bin/env python3
# -*- coding:utf-8 -*-

from .myhandlers import MakeFileHandler
from .settings import *
from .logconf import *

# __all__ = ['MakeFileHandler', 'LOGGING_CONFIG', 'AUTO_RULES', 'REDSHIFT_AUTO_RULES']
Loading

0 comments on commit 29ae63a

Please sign in to comment.