-
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
806cc1e
commit 2d84f18
Showing
3 changed files
with
21 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# @Author: chunyang.xu | ||
# @Email: [email protected] | ||
# @Date: 2020-11-30 16:28:21 | ||
# @Last Modified time: 2022-11-14 19:08:24 | ||
# @Last Modified time: 2022-11-18 15:40:35 | ||
# @github: https://github.com/longfengpili | ||
|
||
# !/usr/bin/env python3 | ||
|
@@ -64,11 +64,19 @@ def __contains__(self, name): | |
isin = True if col else False | ||
return isin | ||
|
||
def append(self, column): | ||
def append(self, column: ColumnModel): | ||
columns = list(self.columns) | ||
columns.append(column) | ||
return ColumnsModel(*columns) | ||
|
||
def remove(self, remove_column: str): | ||
new_columns = [] | ||
columns = list(self.columns) | ||
for column in columns: | ||
if column.newname != remove_column: | ||
new_columns.append(column) | ||
return ColumnsModel(*new_columns) | ||
|
||
@property | ||
def func_cols(self): | ||
func_cols = [col for col in self.columns if col.func] | ||
|
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,7 +1,7 @@ | ||
# @Author: chunyang.xu | ||
# @Email: [email protected] | ||
# @Date: 2020-06-09 16:46:54 | ||
# @Last Modified time: 2022-11-18 15:06:28 | ||
# @Last Modified time: 2022-11-18 15:44:48 | ||
# @github: https://github.com/longfengpili | ||
|
||
# !/usr/bin/env python3 | ||
|
@@ -12,7 +12,7 @@ | |
import shutil | ||
import setuptools | ||
|
||
VERSION = '0.0.97' | ||
VERSION = '0.0.98' | ||
PROJECT_NAME = 'pydbapi' | ||
|
||
with open('README.md', 'r', encoding='utf-8') as f: | ||
|