Skip to content

Commit ba7b103

Browse files
committed
Fixes
1 parent e933d2b commit ba7b103

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

my-postgres-core/src/connection/connection_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async fn create_and_start_no_tls_connection(
123123
Ok(_) => {
124124
my_logger::LOGGER.write_debug(
125125
"Postgres background".to_string(),
126-
format!("Exist connection loop with no error"),
126+
format!("Exist connection loop gracefully"),
127127
ctx_spawned,
128128
);
129129
}

my-postgres-tests/src/dto/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ mod where_model_with_str;
2828
mod where_model_with_timestamp;
2929
mod where_model_with_vec;
3030

31+
mod test_array_as_jsonb;
3132
mod test_select_field_as_json;
33+
pub use test_array_as_jsonb::*;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use my_postgres::macros::*;
2+
3+
#[derive(TableSchema)]
4+
pub struct EntityWithJsonBArray {
5+
pub id: i32,
6+
#[sql_type("jsonb")]
7+
#[db_index(id: 0, index_name: "jsonb_array_index", is_unique: false, order: "ASC")]
8+
pub jsonb_array: Vec<String>,
9+
}

0 commit comments

Comments
 (0)