Andrew.Log
-
[Leetcode] 139. Word Break
Dec 11, 2024
-
2 min read
Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dictionary words.
Note that the same word in the dictionary may be reused multiple times in the segmentation.
-
Node Sequelize Update 與 Set 的差異
Oct 22, 2024
-
1 min read
主要遇到的問題
原專案是使用
Rails
開發,但因總總原因,決定改用Node.js
開發,但在轉換時,遇到了一些問題,其中就有 Sequelize 的 Update 與 Set 的差異。使用
Rails
所提供的 ORM 有跟很方便的方法,就是可以把 column 設定為json
或是text
,在寫入與讀取時,ORM 會自動幫你處理,可以很方便的讀寫 json 裡的資料。但在Node.js
使用 Sequelize 時,就沒有這麼方便了。