Oleh Salyvin Oleh Salyvin - 5 months ago 53
Objective-C Question

How to store 128-bit value in SQLite?

I wanna convert UUID (NSUUID) an unique string, are 128-bit value to a number value and to store its in SQLite as Primary Key uses Core Data.

How do I do it?

With best regards


There doesn't seem to much on the interwebs that does what you are looking for, so I would guess that what you desire to do may not be the smartest thing to do.

All I could really find was:

How to store 128 bit values

[sqlite] 128-bit numbers

As per the comment from Drew, the second link is now dead. However I found it in the wayback machine:

Wayback version of Sqlite 128 bit numbers

Everything else seems to talk about text instead of numbers