Commit 0b334b6
committed
agent: FromField/ToField for SimplexNameInfo
Stored as TEXT via decodeLatin1 . strEncode and decoded via
fromTextField_ $ eitherToMaybe . strDecode . encodeUtf8 — the
established pattern for typed TEXT columns in this codebase
(see RcvSwitchStatus, SndSwitchStatus, RatchetSyncState at
Agent/Protocol.hs:614-647). Lets simplex-chat carry the type
directly in DB tuples without a per-call decode helper.1 parent a0410d0 commit 0b334b6
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | | - | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
| |||
0 commit comments