gpt4 book ai didi

arrays - 字符串数组迁移的语法

转载 作者:行者123 更新时间:2023-11-29 11:43:19 24 4
gpt4 key购买 nike

似乎支持 postgres 数组 knex #226 .是否有超越原始 sql 的迁移语法? schema building docs别提了。

大概是使用 postgres array docs 的原始 sql 数据类型会是:

table.specificType('arrayfield', 'text[]')

但是有没有这样的东西:

table.string('arrayfield').array()

最佳答案

是的,specificType 将是去这里的方式,目前没有用于处理 postgres 特定类型的 OO 接口(interface)。

关于arrays - 字符串数组迁移的语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25062944/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com