Skip to content

StephenFerrari14/lqs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LQS

Its SQL but backwards. Query supported databases using SQL-FWS (From Where Select) format.

Format

SQL-FWS format is the standard SQL format except the SELECT clause is the last clause Ex.

FROM table WHERE id = 1 SELECT id

Install

git clone
cargo build --release
export PATH=~/Documents/lqs/target/release/:$PATH

Configure

lqs init

vim ~/.lqs/config

Create new connection in the same format as example. Example connection connects to postgres as the postgres user

Run

Enter program to run queries in series

lqs --connection=example

Exit lqs with the exit command

Or to just run 1 query and exit

lqs --connection=example --query="from table select *"

Dev

cargo run -- -c example -q "select * from table"

Test

cargo test

About

Database query CLI written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages