@@ -518,7 +518,7 @@ public async Task<List<GetAuthorsByBookNameRow>> GetAuthorsByBookName(GetAuthors
518518 }
519519 }
520520
521- private const string InsertPostgresTypesSql = "INSERT INTO postgres_types(c_boolean, c_bit, c_smallint, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_interval, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_uuid, c_json, c_json_string_override, c_jsonb, c_bytea, c_boolean_array, c_text_array, c_integer_array, c_decimal_array, c_date_array, c_timestamp_array) VALUES ( @c_boolean, @c_bit, @c_smallint, @c_integer, @c_bigint, @c_real, @c_numeric, @c_decimal, @c_double_precision, @c_money, @c_date, @c_time, @c_timestamp, @c_timestamp_with_tz, @c_interval, @c_char, @c_varchar, @c_character_varying, @c_bpchar, @c_text, @c_uuid, @c_json :: json, @c_json_string_override :: json, @c_jsonb :: jsonb, @c_bytea, @c_boolean_array, @c_text_array, @c_integer_array, @c_decimal_array, @c_date_array, @c_timestamp_array ) " ;
521+ private const string InsertPostgresTypesSql = "INSERT INTO postgres_types(c_boolean, c_bit, c_smallint, c_integer, c_bigint, c_real, c_numeric, c_decimal, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_interval, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_uuid, c_json, c_json_string_override, c_jsonb, c_jsonpath, c_bytea, c_boolean_array, c_text_array, c_integer_array, c_decimal_array, c_date_array, c_timestamp_array) VALUES ( @c_boolean, @c_bit, @c_smallint, @c_integer, @c_bigint, @c_real, @c_numeric, @c_decimal, @c_double_precision, @c_money, @c_date, @c_time, @c_timestamp, @c_timestamp_with_tz, @c_interval, @c_char, @c_varchar, @c_character_varying, @c_bpchar, @c_text, @c_uuid, @c_json :: json, @c_json_string_override :: json, @c_jsonb :: jsonb, @c_jsonpath :: jsonpath , @c_bytea, @c_boolean_array, @c_text_array, @c_integer_array, @c_decimal_array, @c_date_array, @c_timestamp_array ) " ;
522522 public class InsertPostgresTypesArgs
523523 {
524524 public bool ? CBoolean { get ; init ; }
@@ -545,6 +545,7 @@ public class InsertPostgresTypesArgs
545545 public JsonElement ? CJson { get ; init ; }
546546 public string ? CJsonStringOverride { get ; init ; }
547547 public JsonElement ? CJsonb { get ; init ; }
548+ public string ? CJsonpath { get ; init ; }
548549 public byte [ ] ? CBytea { get ; init ; }
549550 public bool [ ] ? CBooleanArray { get ; init ; }
550551 public string [ ] ? CTextArray { get ; init ; }
@@ -580,6 +581,7 @@ public async Task InsertPostgresTypes(InsertPostgresTypesArgs args)
580581 queryParams . Add ( "c_json" , args . CJson . HasValue ? args . CJson . Value . GetRawText ( ) : null ) ;
581582 queryParams . Add ( "c_json_string_override" , args . CJsonStringOverride ) ;
582583 queryParams . Add ( "c_jsonb" , args . CJsonb . HasValue ? args . CJsonb . Value . GetRawText ( ) : null ) ;
584+ queryParams . Add ( "c_jsonpath" , args . CJsonpath ) ;
583585 queryParams . Add ( "c_bytea" , args . CBytea ) ;
584586 queryParams . Add ( "c_boolean_array" , args . CBooleanArray ) ;
585587 queryParams . Add ( "c_text_array" , args . CTextArray ) ;
@@ -670,7 +672,7 @@ public async Task InsertPostgresTypesBatch(List<InsertPostgresTypesBatchArgs> ar
670672 }
671673 }
672674
673- private const string GetPostgresTypesSql = "SELECT c_boolean, c_bit, c_smallint, c_integer, c_bigint, c_decimal, c_numeric, c_real, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_interval, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_json, c_json_string_override, c_jsonb, c_uuid, c_bytea, c_boolean_array, c_text_array, c_integer_array, c_decimal_array, c_date_array, c_timestamp_array FROM postgres_types LIMIT 1" ;
675+ private const string GetPostgresTypesSql = "SELECT c_boolean, c_bit, c_smallint, c_integer, c_bigint, c_decimal, c_numeric, c_real, c_double_precision, c_money, c_date, c_time, c_timestamp, c_timestamp_with_tz, c_interval, c_char, c_varchar, c_character_varying, c_bpchar, c_text, c_json, c_json_string_override, c_jsonb, c_jsonpath, c_uuid, c_bytea, c_boolean_array, c_text_array, c_integer_array, c_decimal_array, c_date_array, c_timestamp_array FROM postgres_types LIMIT 1" ;
674676 public class GetPostgresTypesRow
675677 {
676678 public bool ? CBoolean { get ; init ; }
@@ -696,6 +698,7 @@ public class GetPostgresTypesRow
696698 public JsonElement ? CJson { get ; init ; }
697699 public string ? CJsonStringOverride { get ; init ; }
698700 public JsonElement ? CJsonb { get ; init ; }
701+ public string ? CJsonpath { get ; init ; }
699702 public Guid ? CUuid { get ; init ; }
700703 public byte [ ] ? CBytea { get ; init ; }
701704 public bool [ ] ? CBooleanArray { get ; init ; }
0 commit comments