Skip to content

Commit

Permalink
next steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kuqmua committed Jan 4, 2025
1 parent 3667a3f commit 8007c13
Show file tree
Hide file tree
Showing 5 changed files with 1,274 additions and 323 deletions.
222 changes: 142 additions & 80 deletions common/src/repositories_types/server/routes/api/example/example.http
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,20 @@ commit: 926cf2c0bac1dfbd1fd466068b2c9fc5a271bc3b

[
{
"sqlx_types_decimal_as_postgresql_numeric": "1",
"sqlx_types_decimal_as_postgresql_numeric_not_null": "5"
"sqlx_types_big_decimal_as_postgresql_numeric": {
"digits": {
"sign": "NoSign",
"digits": [1,2]
},
"scale": 1
},
"sqlx_types_big_decimal_as_postgresql_numeric_not_null": {
"digits": {
"sign": "Plus",
"digits": [654]
},
"scale": 2
}
}
]

Expand Down Expand Up @@ -72,87 +84,137 @@ content-type: application/json
commit: 72a7f5c066a08a77fb91e75abee9f6e79e00e2b8

{
"std_primitive_i64_as_postgresql_big_serial_not_null": {
# "std_primitive_i64_as_postgresql_big_serial_not_null": {
# "logical_operator": "Or",
# "value": [
# {
# "Equal": {
# "logical_operator": "Or",
# "value": 0
# }
# },
# {
# "GreaterThan": {
# "logical_operator": "Or",
# "value": 0
# }
# },
# {
# "Between": {
# "logical_operator": "Or",
# "start": 0,
# "end": 0
# }
# },
# {
# "In": {
# "logical_operator": "Or",
# "value": [
# 0
# ]
# }
# }
# ]
# },
# "sqlx_types_big_decimal_as_postgresql_numeric": {
# "logical_operator": "Or",
# "value": [
# {
# "Equal": {
# "logical_operator": "Or",
# "value": {
# "digits": {
# "sign": "NoSign",
# "digits": []
# },
# "scale": 0
# }
# }
# },
# {
# "GreaterThan": {
# "logical_operator": "Or",
# "value": {
# "digits": {
# "sign": "NoSign",
# "digits": []
# },
# "scale": 0
# }
# }
# },
# {
# "Between": {
# "logical_operator": "Or",
# "start": {
# "digits": {
# "sign": "NoSign",
# "digits": []
# },
# "scale": 0
# },
# "end": {
# "digits": {
# "sign": "NoSign",
# "digits": []
# },
# "scale": 0
# }
# }
# },
# {
# "IsNull": {
# "logical_operator": "Or"
# }
# }
# ]
# },
"sqlx_types_big_decimal_as_postgresql_numeric_not_null": {
"logical_operator": "Or",
"value": [
{
"Equal": {
"logical_operator": "Or",
"value": 0
}
},
{
"GreaterThan": {
"logical_operator": "Or",
"value": 0
}
},
{
"Between": {
"logical_operator": "Or",
"start": 0,
"end": 0
}
},
{
"In": {
"logical_operator": "Or",
"value": [
0
]
}
}
]
},
"sqlx_types_decimal_as_postgresql_numeric": {
"logical_operator": "Or",
"value": [
{
"Equal": {
"logical_operator": "Or",
"value": "0"
}
},
{
"GreaterThan": {
"logical_operator": "Or",
"value": "0"
}
},
{
"Between": {
"logical_operator": "Or",
"start": "0",
"end": "0"
}
},
{
"IsNull": {
"logical_operator": "Or"
}
}
]
},
"sqlx_types_decimal_as_postgresql_numeric_not_null": {
"logical_operator": "Or",
"value": [
{
"Equal": {
"logical_operator": "Or",
"value": "0"
}
},
{
"GreaterThan": {
"logical_operator": "Or",
"value": "0"
}
},
# {
# "Equal": {
# "logical_operator": "Or",
# "value": {
# "digits": {
# "sign": "Plus",
# "digits": [64823423,2323,23423]
# },
# "scale": 2
# }
# }
# }
# ,
# {
# "GreaterThan": {
# "logical_operator": "Or",
# "value": {
# "digits": {
# "sign": "NoSign",
# "digits": [1]
# },
# "scale": 1
# }
# }
# }
# ,
{
"Between": {
"logical_operator": "Or",
"start": "0",
"end": "0"
"start": {
"digits": {
"sign": "Plus",
"digits": [1]
},
"scale": 2
},
"end": {
"digits": {
"sign": "Plus",
"digits": [1000000]
},
"scale": 2
}
}
}
]
Expand All @@ -162,10 +224,10 @@ commit: 72a7f5c066a08a77fb91e75abee9f6e79e00e2b8
"std_primitive_i64_as_postgresql_big_serial_not_null": null
},
{
"sqlx_types_decimal_as_postgresql_numeric": null
"sqlx_types_big_decimal_as_postgresql_numeric": null
},
{
"sqlx_types_decimal_as_postgresql_numeric_not_null": null
"sqlx_types_big_decimal_as_postgresql_numeric_not_null": null
}
],
"order_by": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ pub struct Example {
// pub sqlx_types_time_primitive_date_time_as_timestamp: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesTimePrimitiveDateTimeAsPostgresqlTimestamp,
// pub sqlx_types_time_primitive_date_time_as_timestamp_not_null: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesTimePrimitiveDateTimeAsPostgresqlTimestampNotNull,

pub sqlx_types_decimal_as_postgresql_numeric: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesDecimalAsPostgresqlNumeric,
pub sqlx_types_decimal_as_postgresql_numeric_not_null: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesDecimalAsPostgresqlNumericNotNull,
// pub sqlx_types_decimal_as_postgresql_numeric: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesDecimalAsPostgresqlNumeric,
// pub sqlx_types_decimal_as_postgresql_numeric_not_null: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesDecimalAsPostgresqlNumericNotNull,

pub sqlx_types_big_decimal_as_postgresql_numeric: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesBigDecimalAsPostgresqlNumeric,
pub sqlx_types_big_decimal_as_postgresql_numeric_not_null: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesBigDecimalAsPostgresqlNumericNotNull,
//here

// pub sqlx_postgres_types_pg_range_sqlx_types_time_offset_date_time_as_postgresql_ts_tz_range: postgresql_crud::postgresql_type::postgresql_type::SqlxPostgresTypesPgRangeSqlxTypesTimeOffsetDateTimeAsPostgresqlTsTzRange,
Expand All @@ -154,9 +156,6 @@ pub struct Example {
// pub sqlx_postgres_types_pg_ci_text_as_postgresql_ci_text: postgresql_crud::postgresql_type::postgresql_type::SqlxPostgresTypesPgCiTextAsPostgresqlCiText,
// pub sqlx_postgres_types_pg_ci_text_as_postgresql_ci_text_not_null: postgresql_crud::postgresql_type::postgresql_type::SqlxPostgresTypesPgCiTextAsPostgresqlCiTextNotNull,

// pub sqlx_types_big_decimal_as_postgresql_numeric: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesBigDecimalAsPostgresqlNumeric,
// pub sqlx_types_big_decimal_as_postgresql_numeric_not_null: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesBigDecimalAsPostgresqlNumericNotNull,

// pub sqlx_types_chrono_date_time_sqlx_types_chrono_utc_as_postgresql_timestamp_tz: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesChronoDateTimeSqlxTypesChronoUtcAsPostgresqlTimestampTz,
// pub sqlx_types_chrono_date_time_sqlx_types_chrono_utc_as_postgresql_timestamp_tz_not_null: postgresql_crud::postgresql_type::postgresql_type::SqlxTypesChronoDateTimeSqlxTypesChronoUtcAsPostgresqlTimestampTzNotNull,

Expand Down
Loading

0 comments on commit 8007c13

Please sign in to comment.