Skip to content

Commit d7592fe

Browse files
committed
GS
1 parent 7898fd2 commit d7592fe

File tree

7 files changed

+109
-28
lines changed

7 files changed

+109
-28
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
public
3-
resources
3+
resources
4+
dist

config/_default/menus/menus.en.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
[[main]]
3232
name = "Docs"
33-
url = "/docs/guides/quick-start/"
33+
url = "/docs/guides/instalation/"
3434
# url = "/docs/1.0/prologue/introduction/"
3535
weight = 10
3636

content/docs/guides/connection.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "Connection"
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+
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+
```

content/docs/guides/instalation.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: "Instalation"
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+
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+
```

content/docs/guides/quickstart.md

-25
This file was deleted.

hugo_stats.json

+10
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
"code",
1212
"details",
1313
"div",
14+
"figcaption",
15+
"figure",
1416
"footer",
1517
"form",
1618
"g",
@@ -34,6 +36,7 @@
3436
"noscript",
3537
"p",
3638
"path",
39+
"pre",
3740
"script",
3841
"section",
3942
"small",
@@ -65,6 +68,7 @@
6568
"card-body",
6669
"card-list",
6770
"categories",
71+
"chroma",
6872
"col-lg-10",
6973
"col-lg-11",
7074
"col-lg-12",
@@ -98,6 +102,7 @@
98102
"docs-toc",
99103
"doks-sidebar",
100104
"error404",
105+
"expressive-code",
101106
"flex-column",
102107
"flex-grow-1",
103108
"flex-lg-row",
@@ -108,11 +113,14 @@
108113
"footer",
109114
"form-control",
110115
"form-control-lg",
116+
"frame",
111117
"fs-5",
112118
"h-auto",
113119
"h3",
114120
"h4",
115121
"h5",
122+
"header",
123+
"highlight",
116124
"home",
117125
"icon",
118126
"icon-tabler",
@@ -137,6 +145,7 @@
137145
"list-nested",
138146
"list-unstyled",
139147
"list-view",
148+
"m-2",
140149
"mb-0",
141150
"mb-4",
142151
"me-2",
@@ -169,6 +178,7 @@
169178
"navbar-brand",
170179
"navbar-expand-lg",
171180
"navbar-nav",
181+
"not-content",
172182
"offcanvas",
173183
"offcanvas-body",
174184
"offcanvas-end",

layouts/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<p class="lead">{{ .Params.lead | safeHTML }}</p>
99
<a class="btn btn-secondary btn-cta rounded-pill btn-lg my-3" href="https://www.youtube.com/watch?v=KgfnTFI55dc&list=PLEtabm0XBc0R6e8M8GxfIkpWKtTNSqQ9V&index=5" role="button">Watch Video</a>
1010

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/quick-start/" 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 }}guides/instalation/" role="button">Getting Started</a>
1212

1313
{{ .Content }}
1414
</div>

0 commit comments

Comments
 (0)