[DiscordArchive] How do I read it from the SQL query then?
[DiscordArchive] How do I read it from the SQL query then?
Archived author: Thulz • Posted: 2023-09-21T18:19:20.200000+00:00
Original source
How do I read it from the SQL query then?
Archived author: Thulz • Posted: 2023-09-21T18:19:23.746000+00:00
Original source
as UInt64?
Archived author: Thulz • Posted: 2023-09-21T18:20:41.714000+00:00
Original source
```
local _guid = Q:GetUInt64(7)
table.insert(mytable, { ..., GUID = _guid })
```
This won't work
Archived author: Nix • Posted: 2023-09-21T18:20:43.681000+00:00
Original source
The lower part of the GUID is sufficient, which is a UInt32
Archived author: Foe • Posted: 2023-09-21T18:21:49.047000+00:00
Original source
the char table holds uint32 max anyway
Archived author: Thulz • Posted: 2023-09-21T18:21:57.236000+00:00
Original source
Aight cool it's working now thanks
Archived author: Thulz • Posted: 2023-09-21T18:22:11.431000+00:00
Original source
Core handles guid as uint64 tho?
Archived author: Foe • Posted: 2023-09-21T18:22:26.534000+00:00
Original source
it constructs the full guid based on the low guid stored in the db
Archived author: Nix • Posted: 2023-09-21T18:23:28.997000+00:00
Original source
Think of it like this, the GUID holds a type, and a unique identifier for the type
Archived author: Nix • Posted: 2023-09-21T18:23:45.346000+00:00
Original source
That way you have a globally unique id, by including a type id