Comments (6)
There is an error in the way you are executing the command.
sqls -trace -config ./.sqls/config.json sqls -trace -config ~/.config/sqls/config.yml
- sqls does not interpret
~
. - sqls will not read files with relative paths
It may work if you do the following
sqls -config /home/lighttiger2505/.config/sqls/config.yml
sqls -config ${HOME}/.config/sqls/config.yml
from sqls.
There is also a way to output the log to a file using the log option. Posting the results of the log output will help you solve the problem.
sqls -log ${HOME}/sqls.log
from sqls.
I've tried both of the variants you suggested (and the log file).
There's no extra output:
$ sqls -trace -config /home/ben/.config/sqls/config.yml -log /tmp/sqls.log
2021/01/26 10:13:10 db worker: start
2021/01/26 10:13:10 sqls: reading on stdin, writing on stdout
^C
$ cat /tmp/sqls.log
2021/01/26 10:13:10 db worker: start
2021/01/26 10:13:10 sqls: reading on stdin, writing on stdout
Do you have an example of a yaml config file I could look at?
from sqls.
Do you have an example of a yaml config file I could look at?
Sample settings are described in the README.
https://github.com/lighttiger2505/sqls#configuration-file-sample
from sqls.
I've tried both of the variants you suggested (and the log file).
There's no extra output:
$ sqls -trace -config /home/ben/.config/sqls/config.yml -log /tmp/sqls.log 2021/01/26 10:13:10 db worker: start 2021/01/26 10:13:10 sqls: reading on stdin, writing on stdout ^C $ cat /tmp/sqls.log 2021/01/26 10:13:10 db worker: start 2021/01/26 10:13:10 sqls: reading on stdin, writing on stdout
Do you have an example of a yaml config file I could look at?
I also meet this problem, I execute sqls at shell, but get no output.
from sqls.
sqls is run by client of language server protocol. It should not be run by shell.
from sqls.
Related Issues (20)
- Install fails on M1 mac HOT 3
- Invalid SQL leads to stack overflow
- support for function/procedures/other schemas for mssql
- Document config for connecting to Windows domain server with integrated authentication
- Multiple Database Support?
- Wrong formatting with comments. HOT 4
- Race condition fix? HOT 1
- sqls has been deprecated in the neovim/nvim-lspconfig HOT 1
- aliased literals and scientific notation are not parsed and formatted correctly
- Install failed withe go 1.19.2 HOT 1
- Without output with sqls HOT 1
- sqls formating removes all whitespaces HOT 2
- Nullable fields cause pointer addresses to be printed
- Formatting issue on NixOS HOT 2
- Provide password through command
- Using `lowercaseKeywords` doesn't seem to work for reserved words?
- Report table/column descriptions in hover documentation
- Installation Fails in Windows without a GCC compiler HOT 1
- Other RDBMS support HOT 3
- How to setup for sqlite3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqls.