Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,8 @@ _load_test

# JS
node_modules
.temp
.temp
node_modules/
docs/.vuepress/.cache/
docs/.vuepress/.temp/
docs/.vuepress/dist/
21 changes: 9 additions & 12 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { defineUserConfig } from "vuepress";
import { hopeTheme } from "vuepress-theme-hope";
import sidebar from "./sidebar.js";

import { viteBundler } from '@vuepress/bundler-vite'
import { markdownTabPlugin } from '@vuepress/plugin-markdown-tab'

export default defineUserConfig({
lang: "en-US",
title: "PSQLPy",
description: "PSQLPy Documentation",

bundler: viteBundler(),
// bundler: viteBundler(),

theme: hopeTheme({
repo: "psqlpy-python/psqlpy",
Expand All @@ -22,22 +21,20 @@ export default defineUserConfig({

hostname: "https://psqlpy-python.github.io/",

markdown: {
tabs: true,
mermaid: true,
chartjs: true,
},

plugins: {
readingTime: false,

copyCode: {
showInMobile: true,
},

searchPro: {
slimsearch: {
indexContent: true,
autoSuggestions: false,
},

mdEnhance: {
tabs: true,
mermaid: true,
chart: true,
},

sitemap: {
Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default sidebar({
"connection",
"transaction",
"cursor",
"prepared_statement",
"listener",
"results",
"exceptions",
Expand Down
3 changes: 3 additions & 0 deletions docs/.vuepress/styles/config.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$code-dark-theme: dracula;
$code-light-theme: one-light;
$theme-color: #264934;
19 changes: 19 additions & 0 deletions docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// place your custom styles here
.vp-site-name {
visibility: hidden;
}

.vp-hero-info {
img {
max-width: 60% !important;
padding: 1rem;
}
}

.vp-hero-title {
font-size: 3rem;
}

.vp-actions {
align-items: flex-end;
}
1 change: 1 addition & 0 deletions docs/.vuepress/styles/palette.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// you can change colors here
173 changes: 0 additions & 173 deletions docs/.vuepress/theme.ts

This file was deleted.

24 changes: 12 additions & 12 deletions docs/benchmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ However, if you have application and database located on different machines, you
## Local Database
::: tabs
@tab Simple Connection Select
::: chart Simple Connection Select
::: chartjs Simple Connection Select

```json
{
Expand Down Expand Up @@ -80,7 +80,7 @@ However, if you have application and database located on different machines, you
}
```
@tab Hard Connection Select
::: chart Hard Connection Select
::: chartjs Hard Connection Select

```json
{
Expand Down Expand Up @@ -133,7 +133,7 @@ However, if you have application and database located on different machines, you
}
```
@tab Combined Connection Query
::: chart Combined Connection Query
::: chartjs Combined Connection Query

```json
{
Expand Down Expand Up @@ -186,7 +186,7 @@ However, if you have application and database located on different machines, you
}
```
@tab Simple Transaction Select
::: chart Simple Transaction Select
::: chartjs Simple Transaction Select

```json
{
Expand Down Expand Up @@ -239,7 +239,7 @@ However, if you have application and database located on different machines, you
}
```
@tab Hard Transaction Select
::: chart Hard Transaction Select
::: chartjs Hard Transaction Select

```json
{
Expand Down Expand Up @@ -292,7 +292,7 @@ However, if you have application and database located on different machines, you
}
```
@tab Combined Transaction Query
::: chart Combined Transaction Query
::: chartjs Combined Transaction Query

```json
{
Expand Down Expand Up @@ -349,7 +349,7 @@ However, if you have application and database located on different machines, you
## External Database
::: tabs
@tab Simple Connection Select
::: chart Simple Connection Select
::: chartjs Simple Connection Select

```json
{
Expand Down Expand Up @@ -403,7 +403,7 @@ However, if you have application and database located on different machines, you
```

@tab Hard Connection Select
::: chart Hard Connection Select
::: chartjs Hard Connection Select

```json
{
Expand Down Expand Up @@ -457,7 +457,7 @@ However, if you have application and database located on different machines, you
```

@tab Combined Connection Query
::: chart Combined Connection Query
::: chartjs Combined Connection Query

```json
{
Expand Down Expand Up @@ -511,7 +511,7 @@ However, if you have application and database located on different machines, you
```

@tab Simple Transaction Select
::: chart Simple Transaction Select
::: chartjs Simple Transaction Select

```json
{
Expand Down Expand Up @@ -565,7 +565,7 @@ However, if you have application and database located on different machines, you
```

@tab Hard Transaction Select
::: chart Hard Transaction Select
::: chartjs Hard Transaction Select

```json
{
Expand Down Expand Up @@ -619,7 +619,7 @@ However, if you have application and database located on different machines, you
```

@tab Combined Transaction Query
::: chart Combined Transaction Query
::: chartjs Combined Transaction Query

```json
{
Expand Down
6 changes: 3 additions & 3 deletions docs/components/components_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ title: Components
## Components
- `ConnectionPool`: holds connections in itself and give them when requested.
- `ConnectionPoolBuilder`: Chainable builder for `ConnectionPool`, for people who prefer it over big initialization.
- `Connection`: represents single database connection, can be retrieved from `ConnectionPool`.
- `Connection`: represents single database connection, can be retrieved from `ConnectionPool` or created with `connect` method.
- `Transaction`: represents database transaction, can be made from `Connection`.
- `Cursor`: represents database cursor, can be made from `Transaction`.
- `Cursor`: represents database cursor, can be made from `Connection`, `Transaction` and `PreparedStatement`.
- `PreparedStatement`: represents PostgreSQL prepared statement.
- `Listener`: object to work with [LISTEN](https://www.postgresql.org/docs/current/sql-listen.html)/[NOTIFY](https://www.postgresql.org/docs/current/sql-notify.html) functionality, can be mode from `ConnectionPool`.
- `QueryResult`: represents list of results from database.
- `SingleQueryResult`: represents single result from the database.
- `Exceptions`: we have some custom exceptions.

Loading
Loading