Commit Graph

66 Commits

Author SHA1 Message Date
mi-wada
f96a573502
Changed to check case insensitively (#132) 2021-11-16 14:40:48 +09:00
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
Sho Hirose
9e5373509e
fix typo (#130)
* fixed typo

* add a target to ignore

* Revert "add a target to ignore"

This reverts commit c33fee37
2021-11-01 12:59:39 +09:00
Takayuki Maeda
36b1da0afa
Create PropertiesComponent and redesign layout (#128)
* create properties component

* refactor app.rs

* add a test for checking if gobang has overlappted keys

* add keys for switching tabs to properties

* fix tab

* add serialize

* update record_table

* add properties group

* use serialize only in tests

* remove alias

* remove query field
2021-10-09 16:03:52 +09:00
Takayuki Maeda
4bcd4802fc
Add SQL Editor component (#84)
* syntax text

* add sql editor

* remove sytaxx_text module

* remove sytax_text

* add a focus above key

* add a event for movining focus and table component

* add syntax text component

* add a key for executing queries

* add completion

* add reserved words

* update completion when key is delete or left/right

* use reserved words in where clause

* editor

* add a macro for debugging

* stop inserting a new line in the sentence

* remove run key

* enter to execute a query

* fix tests for stateful paragraph

* change const to let
2021-10-08 01:30:13 +09:00
Takayuki Maeda
7a202aa8b9
Expand tilde and environment variables in path field (#120)
* expand tlide in path field

* join path

* implement `expand_path`

* fix compile error on Windows

* fix typo

* use HOMEPATH

* fix home dir

* use HOME env
2021-09-20 11:49:29 +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
950992df8d
Enable to change database tree width (#99)
* add a border width

* add a left_chunk_percentage field

* add keys for extending widget width

* fix completion pop-ups so that they do not protrude from frame

* use expand_or_shorten_widget_width

* handle extend shorten widget width event after component events

* add tests

* add command description

* add tests

* change commands help order

* fix extend_or_shorten_widget_width help

* change left_chunk_percentage to left_main_chunk_percentage
2021-09-16 13:20:11 +09:00
Takayuki Maeda
4fc75b3a6d
increase database connection timeout (#109) 2021-09-15 18:02:00 +09:00
Takayuki Maeda
ef8194b449
Fix SQL syntax error in PostgreSQL get_record (#101)
* fix SQL syntax error

* v0.1.0-alpha.4

* revert database-tree version
2021-09-14 22:55:16 +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
utam0k
204f3a9d79 remove a unnecessary code. 2021-09-12 01:12:09 +09:00
utam0k
922c605b39 use else if to ensure that try_get is only called once. 2021-09-12 01:04:11 +09:00
utam0k
08a70fe76d reduce duplicate codes bacause of try_get() to make it a little easier to read. 2021-09-12 00:58:35 +09:00
Takayuki Maeda
1ffb2c36c0
Integrate table_value into table (#90)
* integrate table_value into table

* remove wrap

* remove wrap and alignment
2021-09-11 13:07:53 +09:00
Takayuki Maeda
7fb3565992
use pool options (#86) 2021-09-10 01:13:21 +09:00
Takayuki Maeda
f42ebafe68
Enter to expand database tree (#85)
* enter to expand database tree

* always check if the key is enter

* return current_selection

* fix clippy warnings
2021-09-09 17:05:25 +09:00
Takayuki Maeda
6f8b13714a
Add number type to postgres (#78)
* add number type to postgres

* fix README

* add bool type to postgres

* add contribution section
2021-09-08 13:04:50 +09:00
Takayuki Maeda
0fb5d77dc6
Add password field to config (#74)
* create FUNDING.yml

* add password field

* add a example using password field to README
2021-09-08 10:23:32 +09:00
Takayuki Maeda
1437f71717
Bump up dependency versions (#62)
* bump up dependency versions

* fix ci.yml

* turn off incremental compilation

* bump up sqlx version

* fix rust

* remove unused features

* add profile

* optimize proc macro

* default features false in database-tree

* remove sqlx from database-tree

* remove --release

* fix

* bump up opt-level 2

* 1

* sqlx 3

* remove profile

* remove windows gnu

* remove windows-gnu

* cache dependencies

* remove windows gnu

* fix typo
2021-09-07 19:10:27 +09:00
Takayuki Maeda
be9a1c87ec
Some minor modifications (#60)
* remove unused dependencies

* add table indexes to help

* fix description

* fix placeholder

* reset selection

* fix structopt description

* add usage section

* add the way to add connections

* remove a space
2021-09-07 00:41:44 +09:00
Takayuki Maeda
919d0753f0 create version module 2021-09-06 22:34:23 +09:00
Takayuki Maeda
83b3e21997 use version module 2021-09-06 22:34:07 +09:00
Takayuki Maeda
78ba8459ad implement a log macro 2021-09-06 16:10:06 +09:00
Takayuki Maeda
3c1e6d13e9 early return error 2021-09-06 16:09:30 +09:00
Takayuki Maeda
7cc4bb7eb1 fix table status 2021-09-06 16:09:09 +09:00
Takayuki Maeda
4a3d32cf9b fix clippy warnings 2021-09-05 23:40:48 +09:00
Takayuki Maeda
1cd7ddf425 use a outside scroll bar with no borders 2021-09-05 23:20:42 +09:00
Takayuki Maeda
6bc3afef12 move table_status under table 2021-09-05 22:50:38 +09:00
Takayuki Maeda
ce312c435a get index_name 2021-09-03 23:31:03 +09:00
Takayuki Maeda
ba3dcaad69 add queries for SQLit 2021-09-03 16:31:23 +09:00
Takayuki Maeda
4dbf3fd922 upper case 2021-09-03 16:30:40 +09:00
Takayuki Maeda
bba5883c5f create sqlite module 2021-08-29 12:18:31 +09:00
Takayuki Maeda
24c9b27a43
Add Configuration section to README (#47)
* add configuration section to README

* fix README

* update gobang.gif

* remove name field
2021-08-28 17:47:49 +09:00
Takayuki Maeda
ae639a3da2
get indexes (#46) 2021-08-28 17:16:38 +09:00
Takayuki Maeda
40f5c69a13
Pass config file path as a command line argument (#45)
* pass config file as an argument

* update keymap
2021-08-28 15:42:44 +09:00
Takayuki Maeda
1d7d6b48dc
get foreign keys (#44) 2021-08-28 14:01:11 +09:00
Takayuki Maeda
2a0abf65cb
Add constraints tab (#41)
* get constraints

* replace / with .

* add constraint tab

* return TableRow

* remove comment column

* fix clippy warnings
2021-08-28 12:46:33 +09:00
Takayuki Maeda
99961aea72
remove column type pattern matching (#40) 2021-08-19 22:29:58 +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
d493f46875
Use command for clipboard instead of copypasta (#36)
* use copy command instead of copypasta

* remove a step for installing dependencies

* rename copy_string to copy_to_clipboard
2021-08-08 23:25:22 +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
8f26ffed09
Highlight filter keywords (#34)
* highlight filter keywords

* remove src from gitignore

* move tree_nav

* remove unneeded line

* refactor databases component

* fix variable names

* update gobang.gif

* add scroll_up_down_multiple_lines command help

* add tests for tree_item_to_span
2021-08-03 12:32:29 +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
7e8291be22
Select multiple cells (#30)
* select multiple cells

* define `expand_selected_area_x`, `expand_selected_area_y`

* make some table component fields private

* fix keymap

* fix a cell selection bug in page 2 and after

* add tests for `is_selected_cell` and `selected_cells`

* select cells while scrolling right

* calculate the number of cells considering cell spacing

* add tests for expand_selected_area

* add comments

* implement `reset`

* fix clippy warnings
2021-07-25 19:22:31 +09:00
Takayuki Maeda
da06d0b557
Make table cells responsive (#23)
* make table cells responsive

* add workspace flag

* fix compile error

* scrolling responsive cells

* horizontal scrolling without numbers

* fix limit

* add row number

* implement TEXT type

* remove unused functions

* add keymap and update gobang.gif

* add a test for `calculate_widths`

* remove a debug line
2021-07-24 03:16:17 +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
4472b63754
Implement table infinite scrolling (#22)
* implement infinite scrolling

* add windows as runs-on OS
2021-07-11 22:07:12 +09:00