Skip to content

Commit 65e762f

Browse files
committed
Added information about deprecated functionaly to docs
1 parent 82d209f commit 65e762f

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

docs/usage/types/array_types.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
---
2-
title: Array Types
2+
title: Array Types (Deprecated)
33
---
4+
5+
::: important
6+
Deprecated functionality.
7+
8+
Use any Python Sequence as a parameter.
9+
:::
10+
411
For type safety and better performance we have predefined array types.
512

613
| PSQLPy Array Type | PostgreSQL Array Type |

docs/usage/types/extra_types.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,22 @@ title: Extra Types
55
PSQLPy has additional types due to the inability to accurately recognize the type passed from Python.
66

77
All extra types available from Python with mapping to PostgreSQL type and Rust type.
8+
9+
::: important
10+
Some of the types are deprecated.
11+
12+
Use standard python types instead of deprecated ones.
13+
:::
14+
815
| PSQLPy type | PostgreSQL type | Rust Type |
916
| :---: | :---: | :---: |
10-
| BigInt | BigInt | i64 |
11-
| Integer | Integer | i32 |
12-
| SmallInt | SmallInt | i16 |
13-
| Float32 | FLOAT4 | f32 |
14-
| Float64 | FLOAT8 | f64 |
15-
| VarChar | VarChar | String |
16-
| Text | Text | String |
17+
| BigInt (Deprecated) | BigInt | i64 |
18+
| Integer (Deprecated) | Integer | i32 |
19+
| SmallInt (Deprecated) | SmallInt | i16 |
20+
| Float32 (Deprecated) | FLOAT4 | f32 |
21+
| Float64 (Deprecated) | FLOAT8 | f64 |
22+
| VarChar (Deprecated) | VarChar | String |
23+
| Text (Deprecated) | Text | String |
1724
| JSON | JSON | serde::Value |
1825
| JSONB | JSONB | serde::Value |
1926
| MacAddr6 | MacAddr | MacAddr6 |

0 commit comments

Comments
 (0)