update id
This commit is contained in:
@@ -8,3 +8,5 @@ POSTGRES_HOST: str = os.getenv('POSTGRES_HOST') # type: ignore
|
||||
POSTGRES_PORT: str = os.getenv('POSTGRES_PORT') # type: ignore
|
||||
POSTGRES_USER: str = os.getenv('POSTGRES_USER') # type: ignore
|
||||
POSTGRES_PASSWORD: str = os.getenv('POSTGRES_PASSWORD') # type: ignore
|
||||
CONNINFO = f'dbname={POSTGRES_DB} user={POSTGRES_USER} password={POSTGRES_PASSWORD} \
|
||||
host={POSTGRES_HOST} port={POSTGRES_PORT}'
|
||||
|
||||
@@ -14,13 +14,7 @@ from aws_lambda_powertools.utilities.typing import LambdaContext
|
||||
from layercake.strutils import md5_hash
|
||||
from psycopg import sql
|
||||
|
||||
from config import (
|
||||
POSTGRES_DB,
|
||||
POSTGRES_HOST,
|
||||
POSTGRES_PASSWORD,
|
||||
POSTGRES_PORT,
|
||||
POSTGRES_USER,
|
||||
)
|
||||
from config import CONNINFO
|
||||
from utils import table_from_arn
|
||||
|
||||
|
||||
@@ -34,8 +28,6 @@ class JSONEncoder(Encoder):
|
||||
|
||||
logger = Logger(__name__)
|
||||
tracer = Tracer()
|
||||
CONNINFO = f'dbname={POSTGRES_DB} user={POSTGRES_USER} password={POSTGRES_PASSWORD} \
|
||||
host={POSTGRES_HOST} port={POSTGRES_PORT}'
|
||||
|
||||
|
||||
UPSERT_QUERY = sql.SQL("""
|
||||
|
||||
Reference in New Issue
Block a user