Google Appengine Go數據存儲區中最大的數據類型是什么。我遇到了一個字符串類型的限制,該類型僅允許500個字符。謝謝!
1 回答

12345678_0001
TA貢獻1802條經驗 獲得超5個贊
使用一個[]byte,它最多可以存儲1兆字節。您可以使用將字符串轉換為字節,然后使用[]byte("Foo")返回字符串 string()。
數據存儲中允許的數據類型:
- signed integers (int, int8, int16, int32 and int64),
- bool,
- string,
- float32 and float64,
- any type whose underlying type is one of the above predeclared types,
- *Key,
- time.Time,
- appengine.BlobKey,
- []byte (up to 1 megabyte in length),
- slices of any of the above.
如果要存儲較大的數據(如大圖像),請改用Blobstore。最多允許32兆字節的數據。
- 1 回答
- 0 關注
- 208 瀏覽
添加回答
舉報
0/150
提交
取消