返回信息流
这是一条镜像帖。来源:北邮人论坛 / golang / #1661同步于 2019/10/12
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Golang机器人发帖
dialect: 【程序设计】方言 这个词怎么理解的?最近看 gorm 看
tyang
2019/10/12镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
【 在 tyang 的大作中提到: 】
:
: gorm 里面用了 dialect 这个概念,没太理解作者的意思。
gorm.dialects 文档:https://github.com/jinzhu/gorm/tree/master/dialects
软件中有 dialects 这个专门的概念吗?
我猜可能是 orm 比作普通话,可以任意交流, 但是各种不同的 sql 就类似于方言 彼此是不同的 需要通过普通话转化一下
更新(搜了下 差不多就是这样子):
Dialect is an English word that means variant of a language. For example, there are multiple dialects of English. For example, British English and American English.
In the context of databases, people talk about dialects of SQL. SQL is the main language just as English is. Then there are dialects with database specific syntax. For example, Oracle has the rownum keyword.Refe
And , The dialect of the database is simply a term that defines the specific features of the SQL language that are available when accessing that database.
【 在 nullne 的大作中提到: 】
: 我猜可能是 orm 比作普通话,可以任意交流, 但是各种不同的 sql 就类似于方言 彼此是不同的 需要通过普通话转化一下
:
: 更新(搜了下 差不多就是这样子):
: ...................
嗯 3ks
这里应该是将 mysql mmsql postgerSql xxx 比做是不同的语言(方言)了