-
Notifications
You must be signed in to change notification settings - Fork 1
/
Web.mORMot.Types.pas
47 lines (30 loc) · 1.11 KB
/
Web.mORMot.Types.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
unit Web.mORMot.Types;
{-------------------------------------------------------------------------------
Adapted from mORMot v1 CrossPlatform units.
See original file for copyright and licence information at:
https://github.com/synopse/mORMot
-------------------------------------------------------------------------------}
interface
uses
SysUtils;
type
// HTTP body may not match the string type, and could be binary
THttpBody = string;
/// alias to share the same string type between client and server
RawUTF8 = string;
TTimeLog = NativeInt; //Int53
TModTime = TTimeLog;
TCreateTime = TTimeLog;
TGUID = string;
THandle = cardinal;
{ Should TID be a string since number is limited to 53-bit in JavaScript?
-> or define and use an explicit Int52 type for SMS? }
/// the TSQLRecord primary key is a 64 bit integer
TID = NativeInt; //Int64;
hash32 = integer;
ERestException = class(Exception);
/// Exception type raised when working with interface-based service process
EServiceException = class(ERestException);
TProcedureRef = reference to procedure;
implementation
end.