Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rustls = { version = "0.23", default-features = false, features = ["ring", "std"
rustls-native-certs = "0.8"
ryu-js = "1"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["float_roundtrip", "preserve_order"] }
serde_json = { version = "1", features = ["float_roundtrip", "preserve_order", "raw_value"] }
sha2 = "0.11"
sqlformat = "0.5"
tar = "0.4"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Under the hood:
- Rename, truncate, drop and back up tables straight from the schema tree
- Compare two schemas and get the script that syncs them
- Copy any object's DDL in one click
- Import a CSV or run a `.sql` script
- Import a CSV or JSON file, or run a `.sql` script
- Save and reuse queries
- Export anything in one click
- Let AI assistants such as Claude read your databases over MCP - and change them only where you allow it
Expand Down Expand Up @@ -112,7 +112,7 @@ Under the hood:
</tr>
<tr>
<td align="center"><a href="docs/screenshots/10.webp"><img alt="Plan viewer" src="docs/screenshots/10-800.webp" width="100%"></a><br><sub><b>Plan viewer</b></sub></td>
<td align="center"><a href="docs/screenshots/11.webp"><img alt="CSV & SQL import" src="docs/screenshots/11-800.webp" width="100%"></a><br><sub><b>CSV & SQL import</b></sub></td>
<td align="center"><a href="docs/screenshots/11.webp"><img alt="CSV, JSON & SQL import" src="docs/screenshots/11-800.webp" width="100%"></a><br><sub><b>CSV, JSON & SQL import</b></sub></td>
<td align="center"><a href="docs/screenshots/12.webp"><img alt="Structure editor" src="docs/screenshots/12-800.webp" width="100%"></a><br><sub><b>Structure editor</b></sub></td>
</tr>
<tr>
Expand Down Expand Up @@ -151,7 +151,7 @@ Every feature in detail, one area per page:
| [🧠 SQL Editor](guide/editor.md) | Autocomplete, multiple cursors, scripts, transactions, the query plan viewer, saved queries and history |
| [πŸ—ƒοΈ Schema Explorer](guide/schema.md) | The schema tree, ER diagrams, schema compare, Copy DDL, schema changes, the structure editor, table backups |
| [πŸ“Š Results Grid](guide/results.md) | Sorting, selection stats, quick charts, the cell and JSON viewers, editing data |
| [πŸ“₯ Import & Export](guide/import-export.md) | CSV and SQL import, export formats |
| [πŸ“₯ Import & Export](guide/import-export.md) | CSV, JSON and SQL import, export formats |
| [πŸ€– AI Assistants (MCP)](guide/ai-assistants.md) | Letting AI apps read your databases, and change them only where you allow it |
| [🌍 The App](guide/app.md) | Themes, languages, palettes, the status bar, keyboard shortcuts, the data folder, auto updates |
| [🎨 Themes](guide/themes.md) | The 21 built-in themes, Select theme…, and making your own |
Expand Down
10 changes: 5 additions & 5 deletions crates/barsql-app/src/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use futures_util::future::BoxFuture;

use crate::events::{ImportHandle, RunHandle};
use crate::{
ApplyError, BackupOutcome, BackupRequest, BarApp, BufferedResult, CsvImportRequest, ResultEdits, ResultTable,
SqlImportRequest,
ApplyError, BackupOutcome, BackupRequest, BarApp, BufferedResult, ResultEdits, ResultTable, SqlImportRequest,
TableImportRequest,
};

impl BarApp {
Expand Down Expand Up @@ -228,13 +228,13 @@ impl BarApp {
Box::pin(self.apply_result_edits_inner(connection_id, tab_id, edits))
}

pub fn import_csv<'a>(
pub fn import_table<'a>(
&'a self,
connection_id: &'a str,
import_id: &'a str,
req: CsvImportRequest,
req: TableImportRequest,
) -> BoxFuture<'a, Result<ImportHandle, QueryError>> {
Box::pin(self.import_csv_inner(connection_id, import_id, req))
Box::pin(self.import_table_inner(connection_id, import_id, req))
}

pub fn import_sql<'a>(
Expand Down
Loading