Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

litecli cutting off long strings

Aperta
#189 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python, sqlite
Ambito
cli, databases

Direzione di ricerca

Riproducete il troncamento con la query CLI interattiva mostrata nell’issue, quindi confrontatelo con l’entry point da riga di comando -e che visualizza la stringa completa. Seguite il percorso di formattazione del risultato interattivo e individuate se il limite può essere disabilitato o configurato. Il lavoro è completato quando l’output interattivo mostra la stringa completa senza i puntini di sospensione indesiderati, mantenendo invariato il comportamento di output esistente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I noticed that litecli is trimming long strings, seemingly after about 495 characters. So instead of showing a full string, it shows 495 characters + "...".

instructions.db> select instructions from data where id="asd2134f32fr23f"
 
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| instructions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Preheat oven to 350 degrees. Line 2 (9 x13 inch) baking dishes with foil or parchment paper.. In a bowl, combine the butter, brownie mix, eggs, and water until combined. You want it all to be wet but some lumps will remain.. Divide batter evenly between to 2 prepared pans and spread out even cover the bottom of both pans.. Bake at 350 degrees until a toothpick inserted comes out clean. Allow to cool completely.. Open carton of ice cream. If using the rectangular type. slice ice cream into 6 s... |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set
Time: 0.012s
instructions.db>

However, when passing the the sql statement to litecli, on the command line, I do get the full string.

litecli instructions.db -e "select instructions from data where id='asd2134f32fr23f'"
instructions
Preheat oven to 350 degrees. Line 2 (9 x13 inch) baking dishes with foil or parchment paper.. In a bowl, combine the butter, brownie mix, eggs, and water until combined. You want it all to be wet but some lumps will remain.. Divide batter evenly between to 2 prepared pans and spread out even cover the bottom of both pans.. Bake at 350 degrees until a toothpick inserted comes out clean. Allow to cool completely.. Open carton of ice cream. If using the rectangular type. slice ice cream into 6 slices and place ice cream slices over 1 pan of the baked brownie.. Allow the ice cream to soften slightly and spread evenly over brownie. An offset spatula comes in handy here if you have one!. Remove other brownie from pan and set upside on top of ice cream.Gently press down to secure with ice cream. Cover and freeze for at least 4 hours.. Remove from freezer and cut into 15 ice cream sandwiches.. Wrap each sandwich with plastic wrap and place in a gallon sized freezer bag. Will store for up to 1 month in the freezer. Makes 15 sandwiches

Is there any way to disable this behavior so I can see full strings from within the litecli CLI?

Lingua principale
Python
Stelle
3.3k
Fork
95
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dbcli/litecli

Tutte le issue di dbcli/litecli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.