Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: achristmascarl/rainfrog
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.10
Choose a base ref
...
head repository: achristmascarl/rainfrog
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.11
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Jan 16, 2025

  1. bump ratatui, tui-textarea (#131)

    achristmascarl authored Jan 16, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e44e27f View commit details
  2. Update README.md

    achristmascarl authored Jan 16, 2025
    Copy the full SHA
    f98cdb3 View commit details
  3. bump to v0.2.11 (#132)

    achristmascarl authored Jan 16, 2025
    Copy the full SHA
    d012b64 View commit details
Showing with 36 additions and 21 deletions.
  1. +24 −12 Cargo.lock
  2. +4 −4 Cargo.toml
  3. +7 −4 README.md
  4. +1 −1 src/components/data.rs
36 changes: 24 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rainfrog"
version = "0.2.10"
version = "0.2.11"
edition = "2021"
rust-version = "1.80"
description = "a database management tui for postgres"
@@ -50,7 +50,7 @@ lazy_static = "1.4.0"
libc = "0.2.148"
log = "0.4.20"
pretty_assertions = "1.4.0"
ratatui = { version = "0.28.0", features = [
ratatui = { version = "0.29.0", features = [
"serde",
"macros",
"unstable-widget-ref",
@@ -80,8 +80,8 @@ tracing-subscriber = { version = "0.3.17", features = ["env-filter", "serde"] }
chrono = { version = "0.4", default-features = false }
chrono-tz = { version = "0.10.0", default-features = false }
indexmap = "2.2.6"
tui-textarea = { version = "0.6.1", features = ["search"] }
sqlparser = "0.52.0"
tui-textarea = { version = "0.7.0", features = ["search"] }
sqlparser = "0.53.0"
arboard = { version = "3.4.1", optional = true, features = [
"wayland-data-control",
] }
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -29,6 +29,11 @@ database targeted. **mysql and sqlite are also supported, but they are
currently unstable**; use with caution, and check out the
[known issues](#known-issues-and-limitations) section for things to look out for!

the postgres driver can also be used to connect to other databases that support
the postgres wire protocol, such as AWS Redshift. however, this functionality is not
well tested. in theory, the mysql driver should be able to do the same for databases
that support the mysql protocol. check each database's documentation for compatability.

## disclaimer

this software is currently under active development; expect breaking changes,
@@ -247,8 +252,8 @@ are the default keybindings.

#### query editor

Keybindings may not behave exactly like Vim. The full list of active
Vim keybindings in Rainfrog can be found at [vim.rs](./src/vim.rs).
keybindings may not behave exactly like vim. the full list of active
Vim keybindings in rainfrog can be found at [vim.rs](./src/vim.rs).

| Keybinding | Description |
| ----------------- | -------------------------------------- |
@@ -359,8 +364,6 @@ features
## known issues and limitations

- geometry types are not currently supported
- in sqlite, `EXPLAIN QUERY PLAN` does not work due to an issue with the
sql parser; see <https://github.com/achristmascarl/rainfrog/issues/106>
- for x11 and wayland, yanking does not copy to the system clipboard, only
to the query editor's buffer. see <https://github.com/achristmascarl/rainfrog/issues/83>
- in addition to the experience being subpar if the terminal window is too
2 changes: 1 addition & 1 deletion src/components/data.rs
Original file line number Diff line number Diff line change
@@ -209,7 +209,7 @@ impl<'a> SettableDataTable<'a> for Data<'a> {
.header(header_row)
.style(Style::default())
.column_spacing(1)
.highlight_style(Style::default().fg(Color::LightBlue).reversed().bold());
.row_highlight_style(Style::default().fg(Color::LightBlue).reversed().bold());
self.scrollable.set_table(buf_table, rows.headers.len(), rows.rows.len(), 36_u16);
self.data_state = DataState::HasResults(rows);
}