You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I want to insert entire entities into a table, from a SELECT query, including the primary key.1 As far as I can tell, this isn't possible with the current insertSelect & Insertion API - the PersistEntity constraint and the types of (<#) and (<&>) get in the way.
The easiest way to support this is probably with an extra insertSelectEntity, to parallel insertEntityMany from Persistent. I haven't yet tried to come up with a safe type for such a function.
Sometimes I want to insert entire entities into a table, from a
SELECT
query, including the primary key.1 As far as I can tell, this isn't possible with the currentinsertSelect
&Insertion
API - thePersistEntity
constraint and the types of(<#)
and(<&>)
get in the way.The easiest way to support this is probably with an extra
insertSelectEntity
, to parallelinsertEntityMany
from Persistent. I haven't yet tried to come up with a safe type for such a function.Footnotes
My use case right now actually involves a
REPLACE
, as in SupportreplaceSelect
#86, but it's otherwise the same idea. ↩The text was updated successfully, but these errors were encountered: