From dddb65f5cb9a939b136aba5bd743663c69de188c Mon Sep 17 00:00:00 2001 From: Nikita Lapkov Date: Thu, 11 Jan 2024 13:34:57 +0000 Subject: [PATCH] feat: enable INSERT/DELETE RETURNING for SQLite --- .../src/builtin_connectors/sqlite_datamodel_connector.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/psl/psl-core/src/builtin_connectors/sqlite_datamodel_connector.rs b/psl/psl-core/src/builtin_connectors/sqlite_datamodel_connector.rs index f9d284c923ff..8b996adb4d64 100644 --- a/psl/psl-core/src/builtin_connectors/sqlite_datamodel_connector.rs +++ b/psl/psl-core/src/builtin_connectors/sqlite_datamodel_connector.rs @@ -25,10 +25,8 @@ const CAPABILITIES: ConnectorCapabilities = enumflags2::make_bitflags!(Connector NativeUpsert | FilteredInlineChildNestedToOneDisconnect | RowIn | - // InsertReturning - While SQLite does support RETURNING, it does not return column information on the way back from the database. - // This column type information is necessary in order to preserve consistency for some data types such as int, where values could overflow. - // Since we care to stay consistent with reads, it is not enabled. - DeleteReturning | // TODO laplab: double check with comment above. + InsertReturning | + DeleteReturning | SupportsFiltersOnRelationsWithoutJoins });