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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mtpk_postgres
3
- Version: 0.1.5
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
@@ -1,4 +1,4 @@
1
- __version__ = "0.1.5"
1
+ __version__ = "0.1.6"
2
2
  __author__ = "jjandres"
3
3
 
4
4
  from .interface import *
@@ -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.5
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.5"
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