mtpk-postgres 0.1.5__tar.gz → 0.1.6__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.
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/PKG-INFO +1 -1
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres/__init__.py +1 -1
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres/async_adapter.py +5 -1
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres.egg-info/PKG-INFO +1 -1
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/pyproject.toml +1 -1
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/LICENSE +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/README.md +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres/core_sync.py +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres/crud.py +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres/excepciones.py +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres/interface.py +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres/utils.py +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres.egg-info/SOURCES.txt +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres.egg-info/dependency_links.txt +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres.egg-info/requires.txt +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/mtpk_postgres.egg-info/top_level.txt +0 -0
- {mtpk_postgres-0.1.5 → mtpk_postgres-0.1.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mtpk_postgres
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Librería para sincronización estructural de bases de datos Postgres con modelos Python (adaptación de mtpk_mariadb)
|
|
5
5
|
Author-email: José Jesús Andrés Zambrana <jjandres@multiplika.es>
|
|
6
6
|
License: MIT
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import psycopg
|
|
12
12
|
from psycopg.rows import dict_row, tuple_row
|
|
13
13
|
from typing import Optional, Union, List, Dict
|
|
14
|
-
from .core_sync import Tabla, SQLLiteral
|
|
14
|
+
from .core_sync import Tabla, Columna, ForeignKey, Index, SQLLiteral
|
|
15
15
|
from logging import Logger
|
|
16
16
|
from contextlib import asynccontextmanager
|
|
17
17
|
from contextvars import ContextVar
|
|
@@ -337,3 +337,7 @@ class AsyncDatabase:
|
|
|
337
337
|
if self.logger:
|
|
338
338
|
self.logger.error("Error en call_proc('%s'): %s", nombre, e)
|
|
339
339
|
raise
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
# Alias para que interface.get_Database() resuelva en modo async
|
|
343
|
+
Database = AsyncDatabase
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mtpk_postgres
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Librería para sincronización estructural de bases de datos Postgres con modelos Python (adaptación de mtpk_mariadb)
|
|
5
5
|
Author-email: José Jesús Andrés Zambrana <jjandres@multiplika.es>
|
|
6
6
|
License: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "mtpk_postgres"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.6"
|
|
8
8
|
description = "Librería para sincronización estructural de bases de datos Postgres con modelos Python (adaptación de mtpk_mariadb)"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|