Commit Graph

12 Commits

Author SHA1 Message Date
ryo watanabe
403b9c7385
feature connection alias (#129)
* feature connection alias

* add database_url_with_name method to Connection

* Revert "feature connection alias"

This reverts commit 88b70c1c33.

* fix struct error

* fix review #129

* fix review

* fix type error
2021-11-03 17:02:17 +09:00
Takayuki Maeda
78d1297452
Refactor filter components (#114)
* prevent cursor from sticking out of paragraph

* define StatefulDrawableComponent

* use database filter component

* fix event order
2021-09-17 15:16:31 +09:00
Takayuki Maeda
6615a235a7
Filter completion (#88)
* create completion component

* add move_up/down

* fix variable name

* pass config

* create debug component

* remov set

* add reserved words

* remove equal

* allow dead code

* always reset offset

* apply completion candidates correctly

* implement selected_candidate, word

* fix clippy warnings

* complete

* add tests for complete

* fix variable name

* fmt

* add tests for `filterd_candidates`

* add "IN" to reserved words

* remove "IN"

* add test cases

* add debug_assertions

* return complete directly

* add s

* make input field private

* update gobang.gif
2021-09-12 15:50:59 +09:00
Takayuki Maeda
3c1e6d13e9 early return error 2021-09-06 16:09:30 +09:00
Takayuki Maeda
ba3dcaad69 add queries for SQLit 2021-09-03 16:31:23 +09:00
Takayuki Maeda
f3e2436a1e
Scrolling multiple lines in databases and connections (#37)
* scrolling multiple line in databases and connections

* multiple lines scrolling in databases
2021-08-17 03:18:46 +09:00
Takayuki Maeda
5da6b1b796
Support PostgreSQL (#35)
* move utils into database module

* draw help in connections view

* support postgres

* add table_schema field

* implement Pool for Postgres

* fix database tree for postgres

* add tests for selection_top, bottom

* fix clippy warnings

* remove unused function

* get schema

* fix clippy warnings

* show user defined types

* fix cell with when selecting far right cell

* split tests into tree functions

* convert TEXT[] to Vec<String>

* add prefix

* remove column pattern matching
2021-08-08 20:57:40 +09:00
Takayuki Maeda
07b2b5090f
Add key config (#33)
* implement key config

* use key config in help component

* use key config in databases component

* use key config in error component

* use key config in connections component

* set commands

* use database/table as a table component name

* fix a test for get_text

* use key config in tab component

* fix function name

* add focus_connections key

* use quit exit key
2021-08-01 01:03:39 +09:00
Takayuki Maeda
3c00d78326
Implement Help component (#32)
* implement help compoment

* fix database filter

* add column types

* fix clippy warnings

* help scrolling

* panic if type is not implemented yet

* not panic but return error

* add decimal

* add a test for get_text

* fix clippy warnings
2021-07-29 19:47:36 +09:00
Takayuki Maeda
c768ffd461
Refactor Table component (#31)
* fix table component field names

* refactor function name

* add a test for is_number_column

* fix variable names

* make some fields private
2021-07-25 23:34:51 +09:00
Takayuki Maeda
98ca815c68
Filter records (#24)
* filter records

* refactor components event

* fix scrollbar style

* remove unneeded doc

* fix event order and table filter cursor

* fix and enhance databases filter
2021-07-19 00:50:39 +09:00
Takayuki Maeda
f221e817a3
Refactor components (#12)
* add logger

* add shift key

* implement record table reset function

* fix style

* ignore gobang.log

* use table component

* remove doc

* pass focused as an argument

* remove unused enums

* create table component

* use databases component

* use query component

* remove unused fields

* use query component

* use connections component

* remove unused struct

* use tab component

* use table status component

* remove unneeded return type

* update gobang.gif
2021-07-08 23:08:04 +09:00