Commit Graph

5233 Commits

Author SHA1 Message Date
Jorge Hermo
e01b8f8343 feat: initial json_object implementation 2025-01-13 01:26:44 +01:00
Jorge Hermo
3785e7c7f8 feat: initial json_object implementation 2025-01-13 01:09:48 +01:00
alpaylan
82fcc27a58 this commit fixes query generation;
- previous query generation method was faulty, producing wrong assertions
- this commit adds a new arbitrary_from implementation for predicates
- new implementation takes a table and a row, and produces a predicate that would evaluate to true for the row
this commit makes small changes to the main for increasing readability
2025-01-13 02:31:19 +03:00
Jorge Hermo
016d9d17ab refactor: json functions vdbe 2025-01-13 00:05:14 +01:00
Jorge Hermo
c7b831515e feat: initial json_object implementation 2025-01-12 22:29:48 +01:00
JeanArhancet
94ff7ac48c docs: add instructions for creating and using a Python virtual environment 2025-01-12 18:44:58 +01:00
Jorge López Tello
7365bee984 Merge branch 'tursodatabase:main' into selectable-io-backend 2025-01-12 15:11:54 +01:00
Jorge López
aca38031a4 cli: pass Io without option to get_io(), since even when running in-memory we get a default Io from Clap. Also remove last pesky Io::clone() 2025-01-11 22:44:56 +01:00
Jorge López
486389d6ff cli: remove calls to Io::clone() as it is now Copy 2025-01-11 21:54:41 +01:00
Jorge López
b630414722 cli: implement Copy for DbLocation and Io, as suggested by [Preston](https://github.com/PThorpe92) 2025-01-11 21:50:09 +01:00
Jussi Saurio
0dceb02ec0 Merge pull request #650 from tursodatabase/use-more-expect-arguments-exact
expr: add expect_arguments_min!() and use expect_arguments_* macros more universally
2025-01-11 17:43:38 +02:00
Jussi Saurio
92888c54e9 remove get_new_rowid() specific tests that require mocking 2025-01-11 17:41:10 +02:00
Jussi Saurio
bf48c0ae72 Remove trait Cursor 2025-01-11 17:19:25 +02:00
Jorge López
5a45df84db core: add debug line when an IO backend is created. A user can check that the correct one has been selected. 2025-01-11 16:08:41 +01:00
Jussi Saurio
9f44d2a7ac Remove unused Table::Index variant and unused Table methods 2025-01-11 17:07:30 +02:00
Jussi Saurio
9909539b9d Store cursor type (table,index,pseudo,sorter) when allocating cursor 2025-01-11 17:04:16 +02:00
Jorge López
2596e0800e core: expose UnixIO apart from PlatformIO on any Unix, and expose UringIO on Linux with feature io_uring.
cli: add a new argument to select I/O backend (more than one option only for Linux with io_uring feature).

cli: make both Limbo::new() and Limbo::open_db() use get_io(), unifying parsing of database path and eliminating duplicated code.
2025-01-11 15:21:26 +01:00
Jorge López
a17464ca5c cli: Add io_uring feature to match core 2025-01-11 15:03:26 +01:00
Jorge López
e5bd39a8b2 Tiny formatting change, because RustRover keeps redoing it. Having to revert on every commit is not fun. 2025-01-11 15:03:26 +01:00
JeanArhancet
ecf7f00cd8 docs: add python bindings 2025-01-11 14:24:20 +01:00
Jussi Saurio
3e2993f5f5 Merge pull request #626 from psvri/fix_csv_quote_import
Fix import csv failing when file contains single quote
2025-01-11 13:26:45 +02:00
Jussi Saurio
81332c6dc5 Merge pull request #651 from sonhmai/chore/fix-url
chore: update repository link in Cargo.toml
2025-01-11 13:25:22 +02:00
sonhmai
46eba6cc77 fix: flaky test in datetime because compare pre-init now.
'now' is covered in other test so it should be fine.
2025-01-11 16:15:58 +07:00
sonhmai
d5eb41a0e5 chore: update repository link in Cargo.toml 2025-01-11 15:30:54 +07:00
psvri
ce8600a695 Fix import csv failing when single quote is in string 2025-01-11 13:48:21 +05:30
Jussi Saurio
e782f30ffe Add expect_arguments_min!() and use expect_arguments_* macros more universally 2025-01-11 09:55:07 +02:00
Jussi Saurio
bcc85c37a0 Merge 'Implement -> and ->> operators for json' from Kacper Madej
Implements the `->` and `->>` operators. Also fixes a few
inconsistencies between sqlite and limbo for `json_extract` function.
Those three functions are similar, yet return slightly different data
types.

Closes #636
2025-01-11 09:42:16 +02:00
Alperen Keleş
7b2f65f5d0 Merge branch 'tursodatabase:main' into main 2025-01-11 09:46:45 +03:00
김선우
a8bf61f237 Change to SkipNullableCheck 2025-01-11 13:44:22 +09:00
김선우
82ca627d75 Reposition NativeInvocation, VisibleForTesting annotations under annotation package 2025-01-11 10:16:19 +09:00
김선우
aa6f2b3827 Add @SkipNullableCheck and @Nullable annotations 2025-01-11 10:15:58 +09:00
김선우
3b4e2bc81f Add dependencies and related licenses 2025-01-11 10:01:03 +09:00
alpaylan
191b586f05 this commit restructures the interaction generation in order to have
better counterexample minimization.

- it separates interaction plans from their state of execution
- it removes closures from the property definitions, encoding properties as an enum variant, and deriving the closures from the variants.
- it adds some naive counterexample minimization capabilities to the Limbo simulator and reduces the plan sizes considerably.
- it makes small changes to various points of the simulator for better error reporting, enhancing code readability, small fixes to handle previously missed cases
2025-01-11 02:20:22 +03:00
Peter Sooley
b5fed15997 implement json_error_position 2025-01-10 11:12:30 -08:00
Kacper Madej
002d2e3dde Uncomment failing tests 2025-01-10 19:26:39 +07:00
Kacper Madej
7efa87ff31 Merge branch 'main' into right-arrow-json 2025-01-10 19:25:56 +07:00
김선우
59180599fd Add java.sql.Driver to automatically detect JDBC 2025-01-10 20:41:49 +09:00
김선우
71c2bdf37b Add TODO comments 2025-01-10 20:26:41 +09:00
김선우
da787edd99 Implement JDBC so that DriverManager can detect limbo connection 2025-01-10 20:22:58 +09:00
김선우
b360f0559f Add LimboDataSource.java 2025-01-10 20:10:49 +09:00
김선우
bc9e9714f1 Add LimboConfig.java 2025-01-10 20:10:38 +09:00
Pekka Enberg
3bc86a3cfc Merge 'Add CI for java testing' from Kim Seon Woo
## Purpose of the PR
- Add CI for java testing
## Reference
https://github.com/tursodatabase/limbo/issues/615

Closes #643
2025-01-10 13:05:05 +02:00
김선우
e8e09cc745 Add JDBC.java 2025-01-10 20:03:32 +09:00
김선우
d88204252f Add JDBC4Connection.java 2025-01-10 19:57:48 +09:00
김선우
12bcfc399b Add LimboConnection.java 2025-01-10 19:55:54 +09:00
김선우
b796a972dc Fix LimboDB.load to be static method 2025-01-10 19:50:50 +09:00
김선우
84c987d42b Fix naming rules
- No underscore for java
- When method names are the same, append 0 at the back
2025-01-10 19:23:38 +09:00
김선우
071d9513ab Add CI for java testing 2025-01-10 19:13:52 +09:00
Pekka Enberg
d31ccf2933 Merge 'core/optimizer: do expression rewriting on all expressions' from Jussi Saurio
Fixes #640 , unblocks some tests in #636

Closes #641
2025-01-10 11:23:51 +02:00
Pekka Enberg
93e4b8d917 Merge 'bindings/java: Enhance exception handling logic' from Kim Seon Woo
### Purpose of this PR
- Enhance exception handling logic
  - When exceptions has to be thrown from Rust to Java, let's just
return the error message directly.
  - Removes JNI call to get error message using
`Java_org_github_tursodatabase_core_LimboDB_getErrorMessageUtf8`
- Add `throwJavaException` to assure that the exception throwing logic
works corretly

Closes #642
2025-01-10 11:22:08 +02:00