You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ Apex Database Layer was designed to be feature-rich, yet easy to use, closely mi
9
9
You get the following out of the box:
10
10
11
11
- Support for all standard `Database` class DML & SOQL operations
12
-
- Easily mock [DML operations](./Mocking-DML-Operations) and [SOQL queries](./Mocking-SOQL-Queries).
13
-
- A [Query framework](./The-Soql-Class) that enables strongly-typed, yet dynamic SOQL queries.
14
-
- Easily [generate test records](./Generating-Test-Records) without using DML or SOQL.
15
-
-[Switch between real & mock database operations](./The-DatabaseLayer-Class#useMocks) in Apex Tests, with a single line of code
16
-
- An optional [Plugin Framework](./The-Plugin-Framework) allows you to fine-tune the platform to your exact use case.
12
+
- Easily mock [DML operations](https://github.com/jasonsiders/apex-database-layer/wiki/Mocking-DML-Operations) and [SOQL queries](https://github.com/jasonsiders/apex-database-layer/wiki/Mocking-SOQL-Queries).
13
+
- A [Query framework](https://github.com/jasonsiders/apex-database-layer/wiki/The-Soql-Class) that enables strongly-typed, yet dynamic SOQL queries.
14
+
- Easily [generate test records](https://github.com/jasonsiders/apex-database-layer/wiki/Generating-Test-Records) without using DML or SOQL.
15
+
-[Switch between real & mock database operations](https://github.com/jasonsiders/apex-database-layer/wiki/The-DatabaseLayer-Class#useMocks) in Apex Tests, with a single line of code
16
+
- An optional [Plugin Framework](https://github.com/jasonsiders/apex-database-layer/wiki/The-Plugin-Framework) allows you to fine-tune the platform to your exact use case.
17
17
- Simplicity: The framework uses just a couple of Apex classes (and a custom metadata type, to support Plugins).
18
18
19
19
Best of all, the framework is built 100% on the Salesforce platform, using standard Salesforce technology. It's open source, and free, and it always will be.
Once intalled, use [`DatabaseLayer.Dml`](./Performing-DML-Operations) for all of your DML operations:
38
+
Once intalled, use [`DatabaseLayer.Dml`](https://github.com/jasonsiders/apex-database-layer/wiki/Performing-DML-Operations) for all of your DML operations:
39
39
40
40
```apex
41
41
// Don't use these standard apex DML methods:
@@ -45,7 +45,7 @@ Database.insert(account);
45
45
DatabaseLayer.Dml.doInsert(account);
46
46
```
47
47
48
-
Use [`DatabaseLayer.Soql`](./Performing-SOQL-Queries) for all of your SOQL queries:
48
+
Use [`DatabaseLayer.Soql`](https://github.com/jasonsiders/apex-database-layer/wiki/Performing-SOQL-Queries) for all of your SOQL queries:
Once this is done, you can instantly decouple your `Dml` and `Soql` operations from the Salesforce database in apex tests, with just a [single line of code](./The-DatabaseLayer-Class#useMocks):
60
+
Once this is done, you can instantly decouple your `Dml` and `Soql` operations from the Salesforce database in apex tests, with just a [single line of code](https://github.com/jasonsiders/apex-database-layer/wiki/The-DatabaseLayer-Class#useMocks):
61
61
62
62
```apex
63
63
DatabaseLayer.useMocks();
64
64
```
65
65
66
-
In apex tests, you can easily [generate test records](./Generating-Test-Records) for use in mocks, that would otherwise require extensive database operations:
66
+
In apex tests, you can easily [generate test records](https://github.com/jasonsiders/apex-database-layer/wiki/Generating-Test-Records) for use in mocks, that would otherwise require extensive database operations:
67
67
68
68
```apex
69
69
// This operation takes ~2ms; would require 4 separate DML operations otherwise:
0 commit comments