-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathload.php
More file actions
76 lines (61 loc) · 2.83 KB
/
Copy pathload.php
File metadata and controls
76 lines (61 loc) · 2.83 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/*
* Copyright (c) 2021 - Terminus Studio (https://Terminus.Studio)
*
* ezDB - https://github.com/TerminusStudio/ezDB
*
* @license https://github.com/TerminusStudio/ezDB/blob/dev/LICENSE.md (MIT License)
*/
$ezDBPath = __DIR__ . '/src';
//Load Exceptions
require_once $ezDBPath . '/Exceptions/Exception.php';
require_once $ezDBPath . '/Exceptions/ConnectionException.php';
require_once $ezDBPath . '/Exceptions/DriverException.php';
require_once $ezDBPath . '/Exceptions/ModelMethodException.php';
require_once $ezDBPath . '/Exceptions/QueryException.php';
/**
* Load only the classes and drivers you require
*
* Be mindful of what you remove.
* If you are not sure what to remove then ask for help in GitHub or leave the file as it is.
*/
//Load base builder and processor
require_once $ezDBPath . '/Query/Builder/QueryType.php';
require_once $ezDBPath . '/Query/Builder/IBuilderInfo.php';
require_once $ezDBPath . '/Query/Builder/IWhereBuilder.php';
require_once $ezDBPath . '/Query/Builder/IAggregateQuery.php';
require_once $ezDBPath . '/Query/Builder/INestedJoinBuilder.php';
require_once $ezDBPath . '/Query/Builder/IBuilder.php';
require_once $ezDBPath . '/Query/Builder/WhereHelper.php';
require_once $ezDBPath . '/Query/Builder/BuilderInfo.php';
require_once $ezDBPath . '/Query/Builder/WhereBuilder.php';
require_once $ezDBPath . '/Query/Builder/AggregateQuery.php';
require_once $ezDBPath . '/Query/Builder/NestedJoinBuilder.php';
require_once $ezDBPath . '/Query/Builder/Builder.php';
require_once $ezDBPath . '/Query/IQuery.php';
require_once $ezDBPath . '/Query/DefaultQuery.php';
require_once $ezDBPath . '/Query/Processor/IProcessor.php';
require_once $ezDBPath . '/Query/Processor/ProcessorContext.php';
require_once $ezDBPath . '/Query/Processor/BaseProcessor.php';
require_once $ezDBPath . '/Query/Processor/MySQLProcessor.php';
require_once $ezDBPath . '/Query/Processor/PostgresProcessor.php';
//For connections:
require_once $ezDBPath . '/DatabaseConfig.php';
//Load Drivers
require_once $ezDBPath . '/Drivers/IDriver.php';
require_once $ezDBPath . '/Drivers/MySqlIDriver.php'; //for mysqli driver
require_once $ezDBPath . '/Drivers/PdoDriver.php'; //for mysql, pgsql driver
//Load Connection
require_once $ezDBPath . '/Connection.php';
require_once $ezDBPath . '/Connections.php';
require_once $ezDBPath . '/DB.php'; //Optional. Some functions may not work without loading Builder
//Load connection builder
require_once $ezDBPath . '/Connections/Builder/IConnectionAwareBuilder.php';
require_once $ezDBPath . '/Connections/Builder/ConnectionAwareBuilder.php';
//For models:
//Load model builder
require_once $ezDBPath . '/Models/Builder/RelationshipBuilder.php';
require_once $ezDBPath . '/Models/Builder/ModelAwareBuilder.php';
//Load Model
require_once $ezDBPath . '/Models/Relationship.php';
require_once $ezDBPath . '/Models/Model.php';