From b93d9d17a1dbe9fa4b12ef6ed542e7aed653872e Mon Sep 17 00:00:00 2001 From: Nico Duldhardt <36307788+2start@users.noreply.github.com> Date: Mon, 17 May 2021 19:55:49 +0200 Subject: [PATCH] Update guid_type.py Enables SQL Alchemy to cache the custom type. See https://docs.sqlalchemy.org/en/14/core/custom_types.html for more information. --- fastapi_utils/guid_type.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fastapi_utils/guid_type.py b/fastapi_utils/guid_type.py index 8f0ef822..5e6926fe 100644 --- a/fastapi_utils/guid_type.py +++ b/fastapi_utils/guid_type.py @@ -27,6 +27,7 @@ class GUID(UUIDTypeDecorator): """ impl = CHAR + cache_ok = True @no_type_check def __init__(self, *args, **kwargs):