forked from inlife/squirrel-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.nut
More file actions
46 lines (40 loc) · 1.07 KB
/
index.nut
File metadata and controls
46 lines (40 loc) · 1.07 KB
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
/**
* Helper function for including
* all needed files (look at dat filestructure tho!)
* why underscores? - we are worried about global namespace!
*/
function __orm_include(filename) {
return dofile(__FILE__.slice(0, -9) + "lib/" + filename + ".nut", true);
}
/**
* Marvelous includes
* First of all fields
* then traits
* then utils
* and then all the main stuff
*/
__orm_include("index");
__orm_include("Field/Basic");
__orm_include("Field/Integer");
__orm_include("Field/Float");
__orm_include("Field/Text");
__orm_include("Field/String");
__orm_include("Field/Bool");
__orm_include("Field/Id");
__orm_include("Field/Password");
__orm_include("Field/Timestamp");
__orm_include("Trait/Interface");
__orm_include("Trait/Positionable");
__orm_include("Trait/Rotationable");
__orm_include("Utils/String");
__orm_include("Utils/Array");
__orm_include("Utils/GUID");
__orm_include("Utils/Formatter");
__orm_include("Driver");
__orm_include("Query");
__orm_include("Entity");
/**
* Now, global namespace is populated
* (polluted with this ORM shit :D )
* and ready to work!
*/