Spread Insert does not work for array columns.
Abierto
- Lenguaje dominante
- TypeScript
- Estrellas
- 157
- Forks
- 7
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
```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"}'
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.