김선우
88c2a15b6f
Add requireNotNull method in CommonUtils
2025-02-07 09:51:37 +09:00
김선우
f6919f028e
Add columnNames to LimboResultSet
2025-02-07 09:25:22 +09:00
김선우
55eb55a634
Rename package to tursodatabase
2025-02-06 20:54:13 +09:00
Pekka Enberg
c210821100
core: Move result row to ProgramState
...
Move result row to `ProgramState` to mimic what SQLite does where `Vdbe`
struct has a `pResultRow` member. This makes it easier to deal with result
lifetime, but more importantly, eventually lazily parse values at the edges of
the API.
2025-02-06 11:52:26 +02:00
Pekka Enberg
fc5f2c7897
Merge 'bindings/java: Change logger dependency ' from Kim Seon Woo
...
# The purpose of this PR
- Current implementation forces users to use logback as their logging
framework
# Changes
- Only add abstraction layer for loggin(which is slf4j in this case)
- In tests, use logback to log out messages(this doesn't affect the
users)
# References
https://github.com/tursodatabase/limbo/issues/615
Closes #863
2025-02-03 09:21:26 +02:00
김선우
997f12426f
Add example project
2025-02-02 20:10:29 +09:00
김선우
5343f0a813
Update README.md on how to use limbo jdbc
2025-02-02 17:02:38 +09:00
김선우
985c5139be
Let's not force users to use specific logging framework
2025-02-02 13:00:03 +09:00
김선우
5d5261637b
Fix debugger to print out INFO messages by default
2025-02-02 12:54:06 +09:00
김선우
3332381f6a
Remove unused
2025-02-02 12:38:55 +09:00
김선우
80adeb520a
Update LimboDB.java to load libraries from /lib
2025-02-02 12:35:34 +09:00
김선우
6168ad2f6e
Add maven-publish plugins to publish jar using gradle
2025-02-02 12:24:28 +09:00
김선우
94dff512c9
Add makefile commands to build for mac and windows
2025-02-02 12:24:04 +09:00
김선우
9fd2c67b4d
Add tests for out of bound access to arrays
2025-01-29 12:04:07 +09:00
김선우
7fe5ba84c7
Fix test that uses wrong data types
2025-01-29 11:59:42 +09:00
김선우
3649e8f67c
Add test to verify behavior on null columns
2025-01-29 11:56:49 +09:00
김선우
041c8fbddc
Fix executeQuery to not run statement.execute()
2025-01-29 11:53:44 +09:00
김선우
2e62abe6df
Implement basic getXX methods for JDBC4ResultSet
2025-01-29 11:41:56 +09:00
Pekka Enberg
3baca19f75
Merge 'bindings/java: Implement close() for LimboStatement and LimboResultSet ' from Kim Seon Woo
...
## Purpose of this PR
- Implement `close()` method for `LimboStatement`(+`JDBC4Statement`) and
`LimboResultSet`(+ `JDBC4ResultSet`)
## Changes
- Add `consumeAll` method in `LimboResultSet`
- Implement `close()` methods
- Because `JDBC4Statement` has longer lifecycle in compared to
`LimboStatement`, we manage different `close` fields(`LimboStatement` is
created when first `execute` method is called on `JDBC4Statemenet`)
## Reference
- [Issue](https://github.com/tursodatabase/limbo/issues/615 )
Closes #799
2025-01-28 14:18:01 +02:00
김선우
55a7cd230e
Add README.md for bindings/java
2025-01-28 10:48:44 +09:00
김선우
b17511b559
Fix test to use lighter query
2025-01-28 09:25:57 +09:00
김선우
a82c459ed0
Implement close on LimboStatement and JDBC4Statement independently
2025-01-28 09:20:07 +09:00
김선우
eeed305b07
Nit
2025-01-27 20:40:43 +09:00
김선우
c18418bed0
Nit
2025-01-27 20:35:11 +09:00
김선우
e48d7aa763
Add consumeAll method in LimboResultSet and let JDBC4Statement to use it
2025-01-27 20:31:37 +09:00
김선우
4dd2d1c64a
Implement close() on LimboStatement
2025-01-27 20:20:10 +09:00
김선우
6252947232
Fix the logic on determining whether connection is closed
2025-01-27 19:49:10 +09:00
김선우
1125e51a59
Add test for close()
2025-01-27 19:19:34 +09:00
김선우
dae15ef0e3
Implement limbo close()
2025-01-27 19:15:02 +09:00
Pekka Enberg
6f93f290e1
bindings/java: Log driver loading error
2025-01-26 21:07:18 +02:00
김선우
2212cc2a09
Apply lints
2025-01-26 20:04:57 +09:00
김선우
8b6e761496
Add lint commands in Makefile
2025-01-26 20:04:30 +09:00
김선우
7d81c32261
Add spotless support for bindings/java formatting
2025-01-25 15:25:13 +09:00
김선우
f10b41c5b5
Pass io to statement from db
2025-01-24 15:43:44 +09:00
김선우
53586b9d00
Break the loop when step() returns Err
2025-01-24 15:06:10 +09:00
김선우
0481e69217
Handle Err case from connection.io
2025-01-24 14:07:52 +09:00
김선우
36dff168b3
Execute io.run_once when receiving StepResult::IO
2025-01-24 13:52:54 +09:00
김선우
d05ffce613
Apply fmt
2025-01-24 13:52:54 +09:00
김선우
82e9fe0219
Handle invalid step results
2025-01-24 13:52:54 +09:00
김선우
f7a8d1b428
Change Java_org_github_tursodatabase_core_LimboStatement_step to run in loop to handle StepResult::IO
2025-01-24 13:52:54 +09:00
김선우
ddfbf11659
Fix test
2025-01-19 22:14:17 +09:00
김선우
e8a62b67d2
Disable failing test
2025-01-19 21:56:50 +09:00
김선우
8f9e70417d
Implement executeQuery and executeUpdate
2025-01-19 21:56:50 +09:00
김선우
fb2b5eb11f
Add debugging logs
2025-01-19 21:56:50 +09:00
김선우
f8cc08e5ad
Remove unused method
2025-01-19 21:56:50 +09:00
김선우
24ead40f88
Change LimboStatement.java to throw exception when the result is null which is the error case
2025-01-19 21:56:50 +09:00
김선우
9c3c6271a3
Remove System.out.println
2025-01-19 21:56:50 +09:00
김선우
10a7b1b035
Disable for now
2025-01-19 21:56:50 +09:00
김선우
5fbce67774
Temporarily remove restrictions of running test for 1 second
2025-01-19 21:56:50 +09:00
김선우
f80823a297
Add LimboStepResult.java constructor
2025-01-19 21:56:50 +09:00