如果您提供几个特别的命名字段,GORM会自动给它们添加时间戳,如清单15所示。
If you provide a couple of specially named fields, GORM automatically timestamps your class, as shown in Listing 15.
例如,每当一个文件被写入(或者追加)到磁盘,您可以使Vim自动地升级一个内部的时间戳,如清单14所示。
For example, you could have Vim automatically update an internal timestamp whenever a file was written (or appended) to disk, as shown in Listing 14.
某些列(如标识、外键、时间戳和二进制列)不显示数据,因为它们是在生成数据时计算的。
Some columns such as identity, foreign key, timestamp, and binary columns do not display data, because they are computed while the data is generated.
某些列(如标识、外键、时间戳和二进制列)不显示数据,因为它们是在生成数据时计算的。
Some columns such as identity, foreign key, timestamp, and binary columns do not display data, because they are computed while the data is generated.
应用推荐