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 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+
411For type safety and better performance we have predefined array types.
512
613| PSQLPy Array Type | PostgreSQL Array Type |
Original file line number Diff line number Diff line change @@ -5,15 +5,22 @@ title: Extra Types
55PSQLPy has additional types due to the inability to accurately recognize the type passed from Python.
66
77All 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 |
You can’t perform that action at this time.
0 commit comments