Node.js Drizzle PostgreSQL 数组类型
Drizzle Node.js About 286 wordsarray()
text().array()
表示text[]
。
import {integer, pgTable, text} from "drizzle-orm/pg-core";
const posts = pgTable("post", {
id: integer().primaryKey(),
title: text(),
topics: text().array(),
})
官方文档
https://orm.drizzle.team/docs/guides/empty-array-default-value#postgresql
Views: 10 · Posted: 2025-10-14
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓

Loading...