kysely-org / kysely

A type-safe typescript SQL query builder
https://kysely.dev
MIT License
10.47k stars 267 forks source link

Support postgres array data types #946

Closed gijsmin closed 5 months ago

gijsmin commented 5 months ago

Currently, the array data type is not supported .addColumn('some_array', 'text[]') see: https://www.postgresql.org/docs/current/arrays.html

igalklebanov commented 5 months ago

Hey 👋

You can use sql template tag for now:

import { sql } from 'kysely'

.addColumn('some_array', sql`text[]`)
koskimas commented 5 months ago

No answer from the original poster. They are probably not interested in this anymore. Closing.