[FEATURE]: Allow passing empty arrays to .values()
during insert
#1828
Labels
enhancement
New feature or request
.values()
during insert
#1828
Describe what you want
When inserting values into the database, sometimes I end up needing to add an empty array. Currently this throws an error:
Supporting
[]
insidedb.insert(myTable).values([])
would be more ergonomically friendly and allow me to skip pulling the array into a variable and checking the length of that array before callingdb.insert
.This is similar in spirit to #1295. Edit: Looks like this is the same as a previous issue #1078
The text was updated successfully, but these errors were encountered: