File tree Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- title : Array Types
2
+ title : Array Types (Deprecated)
3
3
---
4
+
5
+ ::: important
6
+ Deprecated functionality.
7
+
8
+ Use any Python Sequence as a parameter.
9
+ :::
10
+
4
11
For type safety and better performance we have predefined array types.
5
12
6
13
| PSQLPy Array Type | PostgreSQL Array Type |
Original file line number Diff line number Diff line change @@ -5,15 +5,22 @@ title: Extra Types
5
5
PSQLPy has additional types due to the inability to accurately recognize the type passed from Python.
6
6
7
7
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
+
8
15
| PSQLPy type | PostgreSQL type | Rust Type |
9
16
| :---: | :---: | :---: |
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 |
17
24
| JSON | JSON | serde::Value |
18
25
| JSONB | JSONB | serde::Value |
19
26
| MacAddr6 | MacAddr | MacAddr6 |
You can’t perform that action at this time.
0 commit comments