Commit Graph

22 Commits (main)

Author SHA1 Message Date
Santo Cariotti de0d57c9a3
Fix JSON conversion of the table name which is also a keyword (#133)
Similarly to escape the table name in the SELECT command query, here we
escape the table name with apostrophes.
In fact, `to_json()` raised a "Syntax error" for table that uses a keyword as
its name.
2 years ago
mi-wada f96a573502
Changed to check case insensitively (#132) 3 years ago
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
3 years ago
Takayuki Maeda 4fc75b3a6d
increase database connection timeout (#109) 3 years ago
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
3 years ago
utam0k 204f3a9d79 remove a unnecessary code. 3 years ago
utam0k 922c605b39 use else if to ensure that try_get is only called once. 3 years ago
utam0k 08a70fe76d reduce duplicate codes bacause of try_get() to make it a little easier to read. 3 years ago
Takayuki Maeda 7fb3565992
use pool options (#86) 3 years ago
Takayuki Maeda 6f8b13714a
Add number type to postgres (#78)
* add number type to postgres

* fix README

* add bool type to postgres

* add contribution section
3 years ago
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
3 years ago
Takayuki Maeda ce312c435a get index_name 3 years ago
Takayuki Maeda ba3dcaad69 add queries for SQLit 3 years ago
Takayuki Maeda 4dbf3fd922 upper case 3 years ago
Takayuki Maeda bba5883c5f create sqlite module 3 years ago
Takayuki Maeda ae639a3da2
get indexes (#46) 3 years ago
Takayuki Maeda 40f5c69a13
Pass config file path as a command line argument (#45)
* pass config file as an argument

* update keymap
3 years ago
Takayuki Maeda 1d7d6b48dc
get foreign keys (#44) 3 years ago
Takayuki Maeda 2a0abf65cb
Add constraints tab (#41)
* get constraints

* replace / with .

* add constraint tab

* return TableRow

* remove comment column

* fix clippy warnings
3 years ago
Takayuki Maeda 99961aea72
remove column type pattern matching (#40) 3 years ago
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
3 years ago
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
3 years ago