Skip to content

Commit 393402c

Browse files
ok
1 parent 59d2424 commit 393402c

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

crates/pgt_configuration/src/database.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub struct DatabaseConfiguration {
4747
impl Default for DatabaseConfiguration {
4848
fn default() -> Self {
4949
Self {
50-
disable_connection: true,
50+
disable_connection: false,
5151
host: "127.0.0.1".to_string(),
5252
port: 5432,
5353
username: "postgres".to_string(),

crates/pgt_configuration/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl PartialConfiguration {
112112
database: Some("postgres".to_string()),
113113
allow_statement_executions_against: Default::default(),
114114
conn_timeout_secs: Some(10),
115-
disable_connection: Some(true),
115+
disable_connection: Some(false),
116116
}),
117117
}
118118
}

crates/pgt_lsp/tests/server.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -773,14 +773,15 @@ async fn test_execute_statement() -> Result<()> {
773773
.to_string();
774774
let host = test_db.connect_options().get_host().to_string();
775775

776-
let conf = PartialConfiguration {
776+
let mut conf = PartialConfiguration::init();
777+
conf.merge_with(PartialConfiguration {
777778
db: Some(PartialDatabaseConfiguration {
778779
database: Some(database),
779780
host: Some(host),
780781
..Default::default()
781782
}),
782783
..Default::default()
783-
};
784+
});
784785

785786
fs.insert(
786787
url!("postgrestools.jsonc").to_file_path().unwrap(),

postgrestools.jsonc

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// YOU CAN COMMENT ME OUT :)
1818
"db": {
1919
"host": "127.0.0.1",
20-
"port": 54322,
20+
"port": 5432,
2121
"username": "postgres",
2222
"password": "postgres",
2323
"database": "postgres",

0 commit comments

Comments
 (0)