Skip to content

Commit 29d1079

Browse files
committed
New Trivadis style for PDF cover. Slight addition to introduction.
Use of codehilite markdown extension for syntax highlighting and line numbers of SQL & PL/SQL.
1 parent efe7c60 commit 29d1079

File tree

102 files changed

+220
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+220
-216
lines changed

docs/3-coding-style/coding-style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Rule | Description
1818

1919
### Example
2020

21-
```
21+
``` sql
2222
PROCEDURE set_salary(in_employee_id IN employees.employee_id%TYPE) IS
2323
CURSOR c_employees(p_employee_id IN employees.employee_id%TYPE) IS
2424
SELECT last_name
@@ -70,7 +70,7 @@ Tag | Meaning | Example
7070

7171
This is an example using the documentation capabilities of SQL Developer.
7272

73-
```
73+
``` sql
7474
/**
7575
Check whether we passed a valid sql name
7676

docs/4-language-usage/1-general/g-1010.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ It's a good alternative for comments to indicate the start and end of a named pr
99

1010
## Example (bad)
1111

12-
```
12+
``` sql
1313
BEGIN
1414
BEGIN
1515
NULL;
@@ -24,7 +24,7 @@ END;
2424

2525
## Example (good)
2626

27-
```
27+
``` sql
2828
BEGIN
2929
<<prepare_data>>
3030
BEGIN

docs/4-language-usage/1-general/g-1020.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Use a label directly in front of loops and nested anonymous blocks:
1212

1313
## Example (bad)
1414

15-
```
15+
``` sql
1616
DECLARE
1717
i INTEGER;
1818
co_min_value CONSTANT INTEGER := 1;
@@ -52,7 +52,7 @@ END;
5252

5353
## Example (good)
5454

55-
```
55+
``` sql
5656
DECLARE
5757
i INTEGER;
5858
co_min_value CONSTANT INTEGER := 1;

docs/4-language-usage/1-general/g-1030.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Unused variables decrease the maintainability and readability of your code.
99

1010
## Example (bad)
1111

12-
```
12+
``` sql
1313
CREATE OR REPLACE PACKAGE BODY my_package IS
1414
PROCEDURE my_proc IS
1515
l_last_name employees.last_name%TYPE;
@@ -31,7 +31,7 @@ END my_package;
3131

3232
## Example (good)
3333

34-
```
34+
``` sql
3535
CREATE OR REPLACE PACKAGE BODY my_package IS
3636
PROCEDURE my_proc IS
3737
l_last_name employees.last_name%TYPE;

docs/4-language-usage/1-general/g-1040.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Any part of your code, which is no longer used or cannot be reached, should be e
99

1010
## Example (bad)
1111

12-
```
12+
``` sql
1313
DECLARE
1414
co_dept_purchasing CONSTANT departments.department_id%TYPE := 30;
1515
BEGIN
@@ -53,7 +53,7 @@ END;
5353

5454
## Example (good)
5555

56-
```
56+
``` sql
5757
DECLARE
5858
co_dept_admin CONSTANT dept.deptno%TYPE := 10;
5959
BEGIN

docs/4-language-usage/1-general/g-1050.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ All constants should be collated in just one package used as a library. If these
1111

1212
## Example (bad)
1313

14-
```
14+
``` sql
1515
DECLARE
1616
l_job employees.job_id%TYPE;
1717
BEGIN
@@ -34,7 +34,7 @@ END;
3434

3535
## Example (good)
3636

37-
```
37+
``` sql
3838
CREATE OR REPLACE PACKAGE constants_up IS
3939
co_president CONSTANT employees.job_id%TYPE := 'AD_PRES';
4040
END constants_up;

docs/4-language-usage/1-general/g-1060.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Instead of using ROWID for later reference to the original row one should use th
1111

1212
## Example (bad)
1313

14-
```
14+
``` sql
1515
BEGIN
1616
INSERT INTO employees_log (employee_id
1717
,last_name
@@ -28,7 +28,7 @@ END;
2828

2929
## Example (good)
3030

31-
```
31+
``` sql
3232
BEGIN
3333
INSERT INTO employees_log (employee_id
3434
,last_name

docs/4-language-usage/1-general/g-1070.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Having an end-of-comment within a block comment will end that block-comment. Thi
99

1010
## Example (bad)
1111

12-
```
12+
``` sql
1313
BEGIN
1414
/* comment one -- nested comment two */
1515
NULL;
@@ -21,7 +21,7 @@ END;
2121

2222
## Example (good)
2323

24-
```
24+
``` sql
2525
BEGIN
2626
/* comment one, comment two */
2727
NULL;

docs/4-language-usage/2-variables-and-types/1-general/g-2110.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Changing the size of the database column last_name in the employees table from `
99

1010
## Example (bad)
1111

12-
```
12+
``` sql
1313
CREATE OR REPLACE PACKAGE BODY my_package IS
1414
PROCEDURE my_proc IS
1515
l_last_name VARCHAR2(20 CHAR);
@@ -29,7 +29,7 @@ END my_package;
2929

3030
## Example (good)
3131

32-
```
32+
``` sql
3333
CREATE OR REPLACE PACKAGE BODY my_package IS
3434
PROCEDURE my_proc IS
3535
l_last_name employees.last_name%TYPE;

docs/4-language-usage/2-variables-and-types/1-general/g-2120.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A single location could be either a type specification package or the database (
1111

1212
## Example (bad)
1313

14-
```
14+
``` sql
1515
CREATE OR REPLACE PACKAGE BODY my_package IS
1616
PROCEDURE my_proc IS
1717
SUBTYPE big_string_type IS VARCHAR2(1000 CHAR);
@@ -25,7 +25,7 @@ END my_package;
2525

2626
## Example (good)
2727

28-
```
28+
``` sql
2929
CREATE OR REPLACE PACKAGE types_up IS
3030
SUBTYPE big_string_type IS VARCHAR2(1000 CHAR);
3131
END types_up;

0 commit comments

Comments
 (0)