Comments (7)
I'm not able to reproduce this locally. Do you have the exact create statement that you used?
Perhaps you can paste the output of .schema
from the sqlite3 cli.
from litecli.
@amjith Please try with this: https://pastebin.com/raw/Uyrs2hfA
from litecli.
I'm able to reproduce it. Thank you for your example. Trying to figure out the fix now.
from litecli.
@tsroten I found an interesting issue with cli_helpers that I'm not sure how to solve.
One of the preprocessors applied by tabulate_adapter is truncate_string.
But in this specific issue where the CREATE TABLE statement is mutli-line there result can often be longer than the 500 characters but it is broken up into multiple lines using \n
characters.
Ideally, I would want to override the default preprocessors for the tabulate adapter when I know that there is a reason to do so. But with the way the code is structured, I can specify additional preprocessors but I can't override the existing ones.
So I'm wondering what would be the best way to proceed?
from litecli.
@amjith I can definitely see a use case for disabling preprocessors in general. There is a way to disable the truncate_string
preprocessor, which is to pass max_field_width=None
as a keyword argument when you call format_output()
. Would that work?
from litecli.
from litecli.
This is now fixed in cli_helpers
and released. Please upgrade cli_helpers by running:
pip install -U cli_helpers
from litecli.
Related Issues (20)
- use \033 in prompt HOT 5
- Add support for the `--wrap` and `--wordwrap` options from sqlite3
- Feature request for `.indexes` command support. HOT 2
- No such function: REGEXP
- Support `.eqp` like in sqlite3 HOT 3
- Can't use .once more than once. HOT 1
- When using .once -o, only last line remains HOT 2
- .schema: line breaks and missing index information
- “python_requires” should be set with “>=3.6”, as litecli 1.9.0 is not compatible with all Python versions
- feature request: sqlite3.38+ support for json to use its new features HOT 1
- Test failure with sqlparse==0.4.3
- Header names vague or hidden in grid mode HOT 2
- when insert to `table t(t text)` , raise an exception
- When long wide characters are stored in the database, it will not output some rows if enabled auto_vertical_output HOT 1
- STRICT tables seem to not be supported HOT 1
- FR: configuration to import custom python functions
- Feature comparison with SQLite CLI special commands (dot commands) HOT 1
- FR: support environment variables in (favourite) queries
- Cancelling a query leads to an error message, there is no 'KILL' command in sqlite HOT 1
- syntax style changes output behaviour 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 litecli.