TcMits
688dc6dde3
minor
2025-09-10 16:31:57 +07:00
TcMits
048e72abf5
consume remaining
2025-09-09 16:27:31 +07:00
TcMits
8a6667a829
refactor cli: will write to
2025-09-09 16:23:08 +07:00
pedrocarlo
edae65fb5f
global allocator should not be set for library, only for executables
2025-08-07 13:41:50 -03:00
Glauber Costa
32532b4feb
Add a native MCP server
...
The SQLite command line has facilities to ingest things like csv, and
other formats. But here we are, in 2025, and I asked Claude if Turso's
CLI should, in the same vein, have a native MCP server.
Claude told me: "You're absolutely right!" "That's a great insight!"
"That's a fantastic idea!" and then proceeded to help me with the
boilerplate for this beautiful server.
Rust has a crate, mcp_server, that implements an mcp_server trait.
However, that depends on Tokio, and I think that would bloat our binary
too much.
I have also considered implementing an MCP server that operates on a
directory and allows to list many SQLite files, but figured that would
be a good job for a more advanced and specialized server, not for the
one that comes by default with the CLI. Let's go for simple.
2025-07-17 15:05:29 -05:00
Jussi Saurio
2fbb21fc17
cli: fix not being able to redirect traces to a file from inline query
2025-07-16 13:55:48 +03:00
Nils Koch
828d4f5016
fix clippy errors for rust 1.88.0 (auto fix)
2025-07-12 18:58:41 +03:00
pedrocarlo
b3b52f7f2f
applying config in app
2025-05-17 15:51:43 -03:00
pedrocarlo
a614114591
Config Definitions
2025-05-17 15:51:17 -03:00
pedrocarlo
277f6f1083
Switch to using std::io::IsTerminal::is_terminal
2025-04-21 01:03:31 -03:00
pedrocarlo
7aaffff45f
Correct for Windows
2025-04-20 18:42:01 -03:00
pedrocarlo
b550fbb3e4
Only initialize Rustyline if we are in a tty
2025-04-20 17:03:43 -03:00
PThorpe92
01184ec1d7
Add tracing-appender to log traces to file asyncronously
2025-04-08 19:36:38 -04:00
pedrocarlo
fe25035c7c
display name in clap is buggy
2025-03-30 01:46:24 -03:00
pedrocarlo
02c466cb1f
start of refactor of repl to use clap
2025-03-30 01:44:58 -03:00
Pere Diaz Bou
262c4de548
add line number and thread id to tracing logs
2025-03-05 15:36:47 +01:00
Pere Diaz Bou
9a01e32c01
add tracing_subscriber and test_log::test
...
I don't know when and why we dropped log::* in favor of tracing but when it was done, it made relevant logs not appear any more while debugging so... I added test_log::test which helps by automatically adding info logs from trace package.
2025-03-05 15:36:06 +01:00
pedrocarlo
04d7d8ab87
autocomplete working
2025-03-04 14:43:07 -03:00
CK-7vn
5f02521d08
cleanup shell tests and cli
2025-02-13 00:49:12 -05:00
Konstantinos Artopoulos
839e1ce3e8
fix(cli): handle remaining input on EOF
2025-02-11 00:02:20 +02:00
psvri
1f21cf6a71
Feat: Import csv support
2025-01-03 15:20:22 +05:30
PThorpe92
f6cd707544
Add clippy CI, fix or ignore warnings where appropriate
2024-12-29 10:25:41 -05:00
PThorpe92
66c44a021f
Move ast expr equality check out of vendored, remove allocs and add cases
2024-12-16 19:39:06 -05:00
PThorpe92
d6c6b84d8f
Add echo and quiet modes for shell
2024-12-15 18:21:16 -05:00
JeanArhancet
6bf8988fa0
Add display message for in-memory database
2024-12-15 11:30:27 +01:00
Pekka Enberg
9deea33afa
cli: Add Limbo version back to shell
2024-12-15 09:26:07 +02:00
PThorpe92
ce2851ac8d
Fix properly opening new connection in shell
2024-12-14 21:20:10 -05:00
PThorpe92
49f8429cc0
Enable :memory: as default option for cli when no DB provided
2024-12-14 20:52:45 -05:00
PThorpe92
33c2d528f2
Refactor shell API for command extensibility
2024-12-13 11:48:18 -05:00
PThorpe92
f6473ea40d
Add several cli commands, re-structure shell
2024-12-13 11:48:18 -05:00
PThorpe92
4dc71bc9ad
Add buffered cli input to allow for incomplete statements
2024-12-12 11:01:14 -05:00
Pere Diaz Bou
f5a1f7c800
various fixes in btree
...
* read_u8 now takes self.offset into account
* shift cell pointers left on balance_root with offset > 0
* fix wrong writes to page in degragment_page
2024-11-19 17:15:19 +01:00
Pere Diaz Bou
44e22c50cf
sim: improve simulator
2024-11-18 13:40:37 +01:00
Pere Diaz Bou
c0e51c4ca6
wip wal
2024-11-05 15:29:53 +01:00
jussisaurio
02d6fa31d3
Fix .schema users not displaying indexes on the users table
2024-10-05 18:25:04 +03:00
Lauri Virtanen
0597c048fc
Better support for BLOBs
...
- Limbo command line shell supports e.g. `SELECT x'616263';`
- `EXPLAIN SELECT x'616263';` lists the opcode
Missing:
- Command line shell not entirely compatible with SQLite when blobs have
non-printable characters in the middle (e.g. `SELECT x'610062';`)
- Python bindings not supported (incoming soon)
2024-09-22 17:55:00 +03:00
김선우
28884181be
Fix clippy
2024-09-15 16:23:27 +09:00
JeanArhancet
38a1b85094
fix: ctrl-c stop current query execution
2024-08-03 22:58:52 +02:00
Pere Diaz Bou
037e260682
core: add cacheflush in cli query
2024-07-31 17:27:02 +02:00
Pekka Enberg
341240740a
cli: Improve CLI prompt
...
Let's print out Limbo version at CLI start and change the prompt to have
"limbo" prefix.
2024-07-25 15:25:46 +03:00
jussisaurio
c1f4f5879c
Dont use ORDER BY in .schema
2024-07-24 12:41:48 +03:00
Bennett Clement
5b4bdc8aa3
Fix .schema
...
- Add tests for .schema
- Make command line sql arguments to allow .commands
2024-07-22 16:00:41 +08:00
Joan Martinez
642603b6c7
perf-latency: fix enabling to build multitenancy
2024-07-21 19:13:02 +02:00
Joan Martinez
4bcae54aa9
fix: use Arc to handle IO
2024-07-21 19:01:58 +02:00
jussisaurio
d1eded0e90
Test with sqlite3 executable in CI as well
2024-07-15 17:27:04 +03:00
Raminder Singh
e4a9c5ce6e
fix clippy warnings
2024-07-14 16:50:54 +05:30
Joan Martinez
346279f9bb
add help message to CLI
2024-07-12 12:00:20 +02:00
Pere Diaz Bou
780908a771
cli: change float print
...
Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com >
2024-07-10 21:39:29 +02:00
Pekka Enberg
e5d55398db
Merge pull request #104 from KunalSin9h/dot-commands
2024-07-08 20:51:50 +03:00
Kunal Singh
46cd1f067b
fix: missing dot command description in unknown command message
2024-07-08 23:19:21 +05:30