Spread Insert does not work for array columns.
Open
- Dominant language
- TypeScript
- Stars
- 157
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
```js
sql`insert into test_table ${spreadInsert({
array_column: ['a','b','c','d'],
})}`;
```
Yields
```postgresql
insert into "test_table" ("array_column") VALUES ($1, $2, $3, $4)
```
rather than joining and formatting the array value as such
```postgresql
ARRAY['a','b','c','d']
```
or
```postgresql
'{"a","b","c","d"}'
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.