Skip to content

Commit

Permalink
added: usage information sections
Browse files Browse the repository at this point in the history
- execute query
- open table
- filter table
- insert row
  • Loading branch information
gytic committed Dec 26, 2024
1 parent 2e25071 commit 31d429c
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,46 @@ If you already have a connection set up:
2. select the right connection (press `j` and `h` for navigation)
3. connect to the DB (press `c`)

### Create table

There is currently no way to create a table from the TUI.
However you can run the query to create the table as a SQL-Query,
inside the <a href="#execute-sql-querys">SQL Editor</a>.

### Execute SQL querys

1. Press `<Ctrl+E>` to open the built-in SQL Editor
2. Write the SQL query
3. Press `<Ctrl+R>` to execute the SQL query

> To switch back to the table-tree press `H`
### Open/view a table

1. Expand table-tree by pressing `e`
2. Select the table you want to view
3. Press `<Enter>` to open the table

> To switch back to the table-tree press `H`
> To switch back to the table press `L`
### Filter rows

0. [Open a table](#openview-a-table)
1. Press `/` to focus the filter input
2. Write a `WHERE`-clause to filter the table
3. Press <Enter> to submit your filter

> To remove the filter focuse the filter input (press `/`) and press `<Esc>`.
### Insert row

0. [Open a table](#openview-a-table)
1. Press `1` to switch the the record tab
2. Press `o` to insert a new row
3. Fill out all columns
4. Press `<Ctrl+S>` to save the changes

<p align="right">(<a href="#readme-top">back to top</a>)</p>

## Support
Expand Down

0 comments on commit 31d429c

Please sign in to comment.