File tree Expand file tree Collapse file tree 10 files changed +173
-5
lines changed Expand file tree Collapse file tree 10 files changed +173
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Getting Started"
3
+ description : " "
4
+ summary : " "
5
+ date : 2023-09-07T16:06:50+02:00
6
+ lastmod : 2023-09-07T16:06:50+02:00
7
+ draft : false
8
+ menu :
9
+ docs :
10
+ parent : " "
11
+ identifier : " guides-4e0d0e0f89f7decc11eaad4ae9193018"
12
+ weight : 2
13
+ toc : true
14
+ seo :
15
+ title : " " # custom title (optional)
16
+ description : " " # custom description (recommended)
17
+ canonical : " " # custom canonical URL (optional)
18
+ noindex : false # false (default) or true
19
+ ---
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
---
2
- title : " Getting Started "
2
+ title : " API Guide "
3
3
description : " "
4
4
summary : " "
5
5
date : 2023-09-07T16:06:50+02:00
9
9
docs :
10
10
parent : " "
11
11
identifier : " guides-4e0d0e0f89f7decc11eaad4ae9193018"
12
- weight : 2
12
+ weight : 3
13
13
toc : true
14
14
seo :
15
15
title : " " # custom title (optional)
16
16
description : " " # custom description (recommended)
17
17
canonical : " " # custom canonical URL (optional)
18
18
noindex : false # false (default) or true
19
19
---
20
+
21
+ API Guide
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Manager"
3
+ description : " Guides lead a user through a specific task they want to accomplish, often with a sequence of steps."
4
+ summary : " "
5
+ date : 2023-09-07T16:04:48+02:00
6
+ lastmod : 2023-09-07T16:04:48+02:00
7
+ draft : false
8
+ menu :
9
+ docs :
10
+ parent : " "
11
+ identifier : " example-6a1a6be4373e933280d78ea53de6158e"
12
+ weight : 1
13
+ toc : true
14
+ seo :
15
+ title : " " # custom title (optional)
16
+ description : " " # custom description (recommended)
17
+ canonical : " " # custom canonical URL (optional)
18
+ noindex : false # false (default) or true
19
+ ---
20
+
21
+ Lets connect to our database. First we need to add respective JDBC driver. for eg if we need to connect to postgres we need to add
22
+
23
+ ``` xml
24
+ <dependency >
25
+ <groupId >org.postgresql</groupId >
26
+ <artifactId >postgresql</artifactId >
27
+ <version >${postgresql.version}</version >
28
+ </dependency >
29
+ ```
30
+
31
+ Next, We need configure SQLComponents to connect to our database instance. we should create file named ` sql-components.yml ` with below details
32
+
33
+ ``` yml
34
+ # Connection Details
35
+ name : Sample
36
+ url : " jdbc:postgresql://localhost:5432/sampledb"
37
+ userName : " user"
38
+ password : " password"
39
+ schemaName : " sampledb"
40
+
41
+ # Mapping Logic
42
+ rootPackage : " com.example"
43
+ ` ` `
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Model"
3
+ description : " Guides lead a user through a specific task they want to accomplish, often with a sequence of steps."
4
+ summary : " "
5
+ date : 2023-09-07T16:04:48+02:00
6
+ lastmod : 2023-09-07T16:04:48+02:00
7
+ draft : false
8
+ menu :
9
+ docs :
10
+ parent : " "
11
+ identifier : " example-6a1a6be4373e933280d78ea53de6158e"
12
+ weight : 2
13
+ toc : true
14
+ seo :
15
+ title : " " # custom title (optional)
16
+ description : " " # custom description (recommended)
17
+ canonical : " " # custom canonical URL (optional)
18
+ noindex : false # false (default) or true
19
+ ---
20
+
21
+ SQLComponents can be added as a build plugin. Also we need to add JDBC driver. for example if we need to work with postgres database we should add
22
+
23
+ ``` xml
24
+ <build >
25
+ <plugins >
26
+ ---
27
+ <plugin >
28
+ <groupId >org.sqlcomponents</groupId >
29
+ <artifactId >maven-plugin</artifactId >
30
+ <version >1.0-SNAPSHOT</version >
31
+ <executions >
32
+ <execution >
33
+ <phase >generate-sources</phase >
34
+ <goals >
35
+ <goal >generated-sources</goal >
36
+ </goals >
37
+ </execution >
38
+ </executions >
39
+ <dependencies >
40
+ <dependency >
41
+ <groupId >org.postgresql</groupId >
42
+ <artifactId >postgresql</artifactId >
43
+ <version >${postgresql.version}</version >
44
+ </dependency >
45
+
46
+ </dependencies >
47
+ </plugin >
48
+ ---
49
+ </plugins >
50
+ </build >
51
+
52
+ ```
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Store"
3
+ description : " Guides lead a user through a specific task they want to accomplish, often with a sequence of steps."
4
+ summary : " "
5
+ date : 2023-09-07T16:04:48+02:00
6
+ lastmod : 2023-09-07T16:04:48+02:00
7
+ draft : false
8
+ menu :
9
+ docs :
10
+ parent : " "
11
+ identifier : " example-6a1a6be4373e933280d78ea53de6158e"
12
+ weight : 3
13
+ toc : true
14
+ seo :
15
+ title : " " # custom title (optional)
16
+ description : " " # custom description (recommended)
17
+ canonical : " " # custom canonical URL (optional)
18
+ noindex : false # false (default) or true
19
+ ---
20
+
21
+ SQLComponents can be added as a build plugin. Also we need to add JDBC driver. for example if we need to work with postgres database we should add
22
+
23
+ ``` xml
24
+ <build >
25
+ <plugins >
26
+ ---
27
+ <plugin >
28
+ <groupId >org.sqlcomponents</groupId >
29
+ <artifactId >maven-plugin</artifactId >
30
+ <version >1.0-SNAPSHOT</version >
31
+ <executions >
32
+ <execution >
33
+ <phase >generate-sources</phase >
34
+ <goals >
35
+ <goal >generated-sources</goal >
36
+ </goals >
37
+ </execution >
38
+ </executions >
39
+ <dependencies >
40
+ <dependency >
41
+ <groupId >org.postgresql</groupId >
42
+ <artifactId >postgresql</artifactId >
43
+ <version >${postgresql.version}</version >
44
+ </dependency >
45
+
46
+ </dependencies >
47
+ </plugin >
48
+ ---
49
+ </plugins >
50
+ </build >
51
+
52
+ ```
Original file line number Diff line number Diff line change 9
9
docs :
10
10
parent : " "
11
11
identifier : " reference-22e9ba8aefa7ef9891199cf8db3a08cd"
12
- weight : 3
12
+ weight : 4
13
13
toc : true
14
14
sidebar :
15
15
collapsed : true
Original file line number Diff line number Diff line change 9
9
docs :
10
10
parent : " "
11
11
identifier : " reference-22e9ba8aefa7ef9891199cf8db3a08cd"
12
- weight : 4
12
+ weight : 5
13
13
toc : true
14
14
sidebar :
15
15
collapsed : true
Original file line number Diff line number Diff line change 8
8
< p class ="lead "> {{ .Params.lead | safeHTML }}</ p >
9
9
< a class ="btn btn-secondary btn-cta rounded-pill btn-lg my-3 " href ="/docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}why/ " role ="button "> Why SQL Components?</ a >
10
10
11
- < a class ="btn btn-primary btn-cta rounded-pill btn-lg my-3 " href ="/docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}guides / " role ="button "> Getting Started</ a >
11
+ < a class ="btn btn-primary btn-cta rounded-pill btn-lg my-3 " href ="/docs/{{ if site.Params.doks.docsVersioning }}{{ site.Params.doks.docsVersion }}/{{ end }}getting-started / " role ="button "> Getting Started</ a >
12
12
13
13
{{ .Content }}
14
14
</ div >
You can’t perform that action at this time.
0 commit comments