File tree Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ serde = { version = "1.0.192", features = ["derive"] }
1111serde-wasm-bindgen = " 0.6.3"
1212wasm-bindgen = { version =" 0.2.91" , features = [" serde-serialize" ] }
1313js-sys = " 0.3.68"
14- leptos-use = { version = " 0.10.3 " , features = [" serde" , " serde_json" ]}
14+ leptos-use = { version = " 0.10.9 " , features = [" serde" , " serde_json" ]}
1515leptos_icons = " 0.3.0" # https://carlosted.github.io/icondata/
1616serde_json = " 1.0.113"
1717wasm-bindgen-futures = " 0.4.39"
1818monaco = " 0.4.0"
1919tauri-sys = { git = " https://github.com/JonasKruckenberg/tauri-sys" , features = [" all" ] }
20- thaw = { version = " 0.2.2 " , features = [" csr" ] }
20+ thaw = { version = " 0.3.1 " , features = [" csr" ] }
2121common = { path = " common" }
2222futures = " 0.3.30"
2323async-stream = " 0.3.5"
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ tokio = "1.36.0"
2121tokio-postgres = " 0.7.10"
2222chrono = " 0.4.31"
2323sled = " 0.34.7"
24- tauri-plugin-context-menu = " 0.7.1"
2524
2625
2726
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub async fn select_schema_tables(
4848 let client = clients. as_ref ( ) . unwrap ( ) . get ( project_name) . unwrap ( ) ;
4949 let tables = client
5050 . query (
51- r#"
51+ r#"--sql
5252 SELECT
5353 table_name,
5454 pg_size_pretty(pg_total_relation_size('"' || table_schema || '"."' || table_name || '"')) AS size
@@ -117,10 +117,12 @@ pub async fn select_schema_relations(
117117 let client = clients. as_ref ( ) . unwrap ( ) . get ( project_name) . unwrap ( ) ;
118118 let rows = client
119119 . query (
120- r#"
121- SELECT tc.constraint_name, tc.table_name, kcu.column_name,
122- ccu.table_name AS foreign_table_name,
123- ccu.column_name AS foreign_column_name
120+ r#"--sql SELECT
121+ tc.constraint_name,
122+ tc.table_name,
123+ kcu.column_name,
124+ ccu.table_name AS foreign_table_name,
125+ ccu.column_name AS foreign_column_name
124126 FROM information_schema.table_constraints AS tc
125127 JOIN information_schema.key_column_usage AS kcu
126128 ON tc.constraint_name = kcu.constraint_name
@@ -154,3 +156,4 @@ pub async fn select_schema_relations(
154156
155157 Ok ( relations)
156158}
159+
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ impl Default for AppState {
3333
3434fn main ( ) {
3535 tauri:: Builder :: default ( )
36- . plugin ( tauri_plugin_context_menu:: init ( ) )
3736 . manage ( AppState :: default ( ) )
3837 . setup ( |app| {
3938 let app_handle = app. handle ( ) ;
@@ -72,3 +71,4 @@ fn main() {
7271 . run ( tauri:: generate_context!( ) )
7372 . expect ( "error while running tauri application" ) ;
7473}
74+
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub fn App() -> impl IntoView {
4343 <Tab key=index. to_string( ) >
4444 <TabLabel slot>
4545 <div class="flex flex-row items-center justify-between gap-2 h-full text-sm" >
46- <span>{ format!( "Tab {}" , ( index + 1 ) . to_string ( ) ) } </span>
46+ <span>{ format!( "Tab {}" , index + 1 ) } </span>
4747 <button
4848 class="rounded-full p-1 hover:bg-gray-100"
4949 on: click=move |_| { tabs. remove_editor( index) }
You can’t perform that action at this time.
0 commit comments