DBCtrlAPI 1.2603.1301__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dbctrlapi-1.2603.1301/LICENSE +20 -0
- dbctrlapi-1.2603.1301/MANIFEST.in +3 -0
- dbctrlapi-1.2603.1301/PKG-INFO +38 -0
- dbctrlapi-1.2603.1301/README.md +5 -0
- dbctrlapi-1.2603.1301/pyproject.toml +27 -0
- dbctrlapi-1.2603.1301/setup.cfg +4 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI/DBCtrl.cp310-win_amd64.pyd +0 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI/DBCtrl.pyi +38 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI/__init__.py +4 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI/out/DBCtrlAPI/DBCtrl.pyi +38 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI.egg-info/PKG-INFO +38 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI.egg-info/SOURCES.txt +14 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI.egg-info/dependency_links.txt +1 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI.egg-info/requires.txt +1 -0
- dbctrlapi-1.2603.1301/src/DBCtrlAPI.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2025 James Lin
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is granted for **personal, educational, or non-commercial use only**.
|
|
6
|
+
You **may NOT**:
|
|
7
|
+
|
|
8
|
+
1. Sell or otherwise commercially exploit this software or any part of it.
|
|
9
|
+
2. Reproduce, distribute, or sublicense this software for commercial purposes.
|
|
10
|
+
3. Modify or create derivative works for commercial purposes without explicit written permission from the copyright holder.
|
|
11
|
+
|
|
12
|
+
You **may**:
|
|
13
|
+
|
|
14
|
+
- Use the software for personal learning, research, or internal company evaluation (non-commercial).
|
|
15
|
+
- Share the software with attribution to the original author, as long as it is not for commercial gain.
|
|
16
|
+
|
|
17
|
+
**Disclaimer:**
|
|
18
|
+
This software is provided "AS IS", without any warranty of any kind, either expressed or implied,
|
|
19
|
+
including but not limited to the warranties of merchantability, fitness for a particular purpose, or non-infringement.
|
|
20
|
+
In no event shall the author be liable for any claim, damages, or other liability arising from, out of, or in connection with the software or its use.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: DBCtrlAPI
|
|
3
|
+
Version: 1.2603.1301
|
|
4
|
+
Summary: DBCtrlAPI Python package
|
|
5
|
+
Author-email: James Lin <tylin123@ms27.hinet.net>
|
|
6
|
+
License: Copyright (c) 2025 James Lin
|
|
7
|
+
|
|
8
|
+
All rights reserved.
|
|
9
|
+
|
|
10
|
+
Permission is granted for **personal, educational, or non-commercial use only**.
|
|
11
|
+
You **may NOT**:
|
|
12
|
+
|
|
13
|
+
1. Sell or otherwise commercially exploit this software or any part of it.
|
|
14
|
+
2. Reproduce, distribute, or sublicense this software for commercial purposes.
|
|
15
|
+
3. Modify or create derivative works for commercial purposes without explicit written permission from the copyright holder.
|
|
16
|
+
|
|
17
|
+
You **may**:
|
|
18
|
+
|
|
19
|
+
- Use the software for personal learning, research, or internal company evaluation (non-commercial).
|
|
20
|
+
- Share the software with attribution to the original author, as long as it is not for commercial gain.
|
|
21
|
+
|
|
22
|
+
**Disclaimer:**
|
|
23
|
+
This software is provided "AS IS", without any warranty of any kind, either expressed or implied,
|
|
24
|
+
including but not limited to the warranties of merchantability, fitness for a particular purpose, or non-infringement.
|
|
25
|
+
In no event shall the author be liable for any claim, damages, or other liability arising from, out of, or in connection with the software or its use.
|
|
26
|
+
|
|
27
|
+
Project-URL: Homepage, https://mis.gotech.biz
|
|
28
|
+
Requires-Python: >=3.10
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: pyodbc
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
#DBCtrlAPI
|
|
35
|
+
|
|
36
|
+
## History of version
|
|
37
|
+
Version 1.2603.1301: 2026/03/13<BR>
|
|
38
|
+
Create DBCtrlAPI for ODBC Database connect API
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "DBCtrlAPI"
|
|
7
|
+
version = "1.2603.1301"
|
|
8
|
+
requires-python = ">=3.10"
|
|
9
|
+
description = "DBCtrlAPI Python package"
|
|
10
|
+
authors = [
|
|
11
|
+
{ name="James Lin", email="tylin123@ms27.hinet.net" }
|
|
12
|
+
]
|
|
13
|
+
readme = "README.md"
|
|
14
|
+
license = { file = "LICENSE" }
|
|
15
|
+
dependencies = [
|
|
16
|
+
"pyodbc"
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
[project.urls]
|
|
20
|
+
Homepage = "https://mis.gotech.biz"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
[tool.setuptools.packages.find]
|
|
24
|
+
where = ["src"]
|
|
25
|
+
|
|
26
|
+
[tool.setuptools.package-data]
|
|
27
|
+
UtilityLibAPI = ["*.pyd"]
|
|
Binary file
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from dataclasses import dataclass
|
|
3
|
+
from enum import IntEnum
|
|
4
|
+
|
|
5
|
+
class ENUM_DB_DSN(IntEnum):
|
|
6
|
+
cE_DSN_MSAccess = 0
|
|
7
|
+
cE_DSN_SQLServer = 1
|
|
8
|
+
cE_DSN_MySQL = 2
|
|
9
|
+
cE_DSN_PgSQL = 3
|
|
10
|
+
|
|
11
|
+
ODBC_DRIVER_MAP: Incomplete
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class STRU_ODBCDBInfo:
|
|
15
|
+
mE_DB_DSN: ENUM_DB_DSN
|
|
16
|
+
ms_DB_Path: str = ...
|
|
17
|
+
ms_Server: str = ...
|
|
18
|
+
ms_DB_Name: str = ...
|
|
19
|
+
ms_User: str = ...
|
|
20
|
+
ms_Password: str = ...
|
|
21
|
+
|
|
22
|
+
class CLASS_DBCtrl:
|
|
23
|
+
CUobj_Conn: Incomplete
|
|
24
|
+
CVmi_qryRECCNT: int
|
|
25
|
+
def __init__(self) -> None: ...
|
|
26
|
+
def CUF_CheckDriver(self, mE_DB_DSN: ENUM_DB_DSN): ...
|
|
27
|
+
def CUF_BuildConnStr(self, Pstru_DBInfo): ...
|
|
28
|
+
def CUF_OpenConnection(self, Pstru_DBInfo): ...
|
|
29
|
+
def CUF_DB_OpenSQL(self, Pobj_Connection, Pms_SQL): ...
|
|
30
|
+
def CUF_DB_FETCH(self, Pobj_Query, Pcolumns): ...
|
|
31
|
+
def CUF_Next(self, Pobj_Query, Pcolumns): ...
|
|
32
|
+
def CUF_DB_Eof(self, Pobj_Query): ...
|
|
33
|
+
def CUF_Eof(self, Pobj_Query): ...
|
|
34
|
+
def CUF_DB_ExecSQL(self, Pms_SQL): ...
|
|
35
|
+
def CUF_GetBlobField(self, Pobj_DataSet: str, Pms_BlobFieldName: str, Pms_FileName: str): ...
|
|
36
|
+
def CUF_GET_BLOB(self, Pobj_DataSet: str, Pms_BlobFieldName: str, Pms_FileName: str): ...
|
|
37
|
+
def CUF_SetBlobField(self, Pobj_Query, Pms_TableName, Pms_QUERY, Pms_BlobFieldName, Pms_FileName) -> None: ...
|
|
38
|
+
def CUF_SET_BLOB(self, Pobj_Query, Pms_TableName, Pms_QUERY, Pms_BlobFieldName, Pms_FileName) -> None: ...
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from dataclasses import dataclass
|
|
3
|
+
from enum import IntEnum
|
|
4
|
+
|
|
5
|
+
class ENUM_DB_DSN(IntEnum):
|
|
6
|
+
cE_DSN_MSAccess = 0
|
|
7
|
+
cE_DSN_SQLServer = 1
|
|
8
|
+
cE_DSN_MySQL = 2
|
|
9
|
+
cE_DSN_PgSQL = 3
|
|
10
|
+
|
|
11
|
+
ODBC_DRIVER_MAP: Incomplete
|
|
12
|
+
|
|
13
|
+
@dataclass
|
|
14
|
+
class STRU_ODBCDBInfo:
|
|
15
|
+
mE_DB_DSN: ENUM_DB_DSN
|
|
16
|
+
ms_DB_Path: str = ...
|
|
17
|
+
ms_Server: str = ...
|
|
18
|
+
ms_DB_Name: str = ...
|
|
19
|
+
ms_User: str = ...
|
|
20
|
+
ms_Password: str = ...
|
|
21
|
+
|
|
22
|
+
class CLASS_DBCtrl:
|
|
23
|
+
CUobj_Conn: Incomplete
|
|
24
|
+
CVmi_qryRECCNT: int
|
|
25
|
+
def __init__(self) -> None: ...
|
|
26
|
+
def CUF_CheckDriver(self, mE_DB_DSN: ENUM_DB_DSN): ...
|
|
27
|
+
def CUF_BuildConnStr(self, Pstru_DBInfo): ...
|
|
28
|
+
def CUF_OpenConnection(self, Pstru_DBInfo): ...
|
|
29
|
+
def CUF_DB_OpenSQL(self, Pobj_Connection, Pms_SQL): ...
|
|
30
|
+
def CUF_DB_FETCH(self, Pobj_Query, Pcolumns): ...
|
|
31
|
+
def CUF_Next(self, Pobj_Query, Pcolumns): ...
|
|
32
|
+
def CUF_DB_Eof(self, Pobj_Query): ...
|
|
33
|
+
def CUF_Eof(self, Pobj_Query): ...
|
|
34
|
+
def CUF_DB_ExecSQL(self, Pms_SQL): ...
|
|
35
|
+
def CUF_GetBlobField(self, Pobj_DataSet: str, Pms_BlobFieldName: str, Pms_FileName: str): ...
|
|
36
|
+
def CUF_GET_BLOB(self, Pobj_DataSet: str, Pms_BlobFieldName: str, Pms_FileName: str): ...
|
|
37
|
+
def CUF_SetBlobField(self, Pobj_Query, Pms_TableName, Pms_QUERY, Pms_BlobFieldName, Pms_FileName) -> None: ...
|
|
38
|
+
def CUF_SET_BLOB(self, Pobj_Query, Pms_TableName, Pms_QUERY, Pms_BlobFieldName, Pms_FileName) -> None: ...
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: DBCtrlAPI
|
|
3
|
+
Version: 1.2603.1301
|
|
4
|
+
Summary: DBCtrlAPI Python package
|
|
5
|
+
Author-email: James Lin <tylin123@ms27.hinet.net>
|
|
6
|
+
License: Copyright (c) 2025 James Lin
|
|
7
|
+
|
|
8
|
+
All rights reserved.
|
|
9
|
+
|
|
10
|
+
Permission is granted for **personal, educational, or non-commercial use only**.
|
|
11
|
+
You **may NOT**:
|
|
12
|
+
|
|
13
|
+
1. Sell or otherwise commercially exploit this software or any part of it.
|
|
14
|
+
2. Reproduce, distribute, or sublicense this software for commercial purposes.
|
|
15
|
+
3. Modify or create derivative works for commercial purposes without explicit written permission from the copyright holder.
|
|
16
|
+
|
|
17
|
+
You **may**:
|
|
18
|
+
|
|
19
|
+
- Use the software for personal learning, research, or internal company evaluation (non-commercial).
|
|
20
|
+
- Share the software with attribution to the original author, as long as it is not for commercial gain.
|
|
21
|
+
|
|
22
|
+
**Disclaimer:**
|
|
23
|
+
This software is provided "AS IS", without any warranty of any kind, either expressed or implied,
|
|
24
|
+
including but not limited to the warranties of merchantability, fitness for a particular purpose, or non-infringement.
|
|
25
|
+
In no event shall the author be liable for any claim, damages, or other liability arising from, out of, or in connection with the software or its use.
|
|
26
|
+
|
|
27
|
+
Project-URL: Homepage, https://mis.gotech.biz
|
|
28
|
+
Requires-Python: >=3.10
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: pyodbc
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
#DBCtrlAPI
|
|
35
|
+
|
|
36
|
+
## History of version
|
|
37
|
+
Version 1.2603.1301: 2026/03/13<BR>
|
|
38
|
+
Create DBCtrlAPI for ODBC Database connect API
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
setup.cfg
|
|
6
|
+
src/DBCtrlAPI/DBCtrl.cp310-win_amd64.pyd
|
|
7
|
+
src/DBCtrlAPI/DBCtrl.pyi
|
|
8
|
+
src/DBCtrlAPI/__init__.py
|
|
9
|
+
src/DBCtrlAPI.egg-info/PKG-INFO
|
|
10
|
+
src/DBCtrlAPI.egg-info/SOURCES.txt
|
|
11
|
+
src/DBCtrlAPI.egg-info/dependency_links.txt
|
|
12
|
+
src/DBCtrlAPI.egg-info/requires.txt
|
|
13
|
+
src/DBCtrlAPI.egg-info/top_level.txt
|
|
14
|
+
src/DBCtrlAPI/out/DBCtrlAPI/DBCtrl.pyi
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pyodbc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
DBCtrlAPI
|