김선우
14280680c0
Apply rust lint
2025-02-12 10:36:43 +09:00
김선우
cb7bd3d211
Change package name from org.github.tursodatabase to tech.turso
2025-02-12 09:58:25 +09:00
wyhaya
351a032cc1
core: Add default column name
2025-02-11 07:03:51 +00:00
Tiago Ribeiro
729524efbd
Update java bindings to use the new retrieval methods to access Record values.
2025-02-10 00:27:51 -07:00
김선우
2fa3a1e6ae
Apply lint
2025-02-09 22:46:48 +09:00
김선우
e0b0a667bb
Implement close
2025-02-09 18:40:50 +09:00
김선우
21d6f33c6b
Implement bindXXX functions on rust and java side
2025-02-07 11:25:23 +09:00
김선우
d574e2c277
Add comments on errors.rs
2025-02-07 11:24:43 +09:00
김선우
f6919f028e
Add columnNames to LimboResultSet
2025-02-07 09:25:22 +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
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
김선우
eeed305b07
Nit
2025-01-27 20:40:43 +09:00
김선우
c18418bed0
Nit
2025-01-27 20:35:11 +09:00
김선우
4dd2d1c64a
Implement close() on LimboStatement
2025-01-27 20:20:10 +09:00
김선우
dae15ef0e3
Implement limbo close()
2025-01-27 19:15:02 +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
김선우
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
김선우
f80823a297
Add LimboStepResult.java constructor
2025-01-19 21:56:50 +09:00
김선우
9de80e19aa
Fix limbo_statement.rs to handle other StepResults
2025-01-19 21:56:49 +09:00
김선우
afbf041e2f
Enhance docs
2025-01-19 21:56:40 +09:00
김선우
73f8eab651
Remove the tight coupling(using inheritance) between LimboXXX and JDBCXXX and favor composition instead
2025-01-19 21:56:40 +09:00
김선우
eaa8743c36
Nit
2025-01-18 09:16:09 +09:00
김선우
39245f35cc
Add TODOs
2025-01-18 09:09:36 +09:00
김선우
a3a31e787c
Initial pass on step function
2025-01-18 09:09:36 +09:00
김선우
5fc5f650cd
Extract set_err_msg_and_throw_exception to utils.rs
2025-01-18 09:09:36 +09:00
김선우
f6ec2252cf
Group "pointer to struct" and "struct to pointer" functions
2025-01-18 09:09:36 +09:00
김선우
9765eaba52
Implement prepare
2025-01-18 09:09:36 +09:00
김선우
0819963b2f
Implement rust side connect and prepare function
2025-01-18 09:09:36 +09:00
김선우
7e78ec448b
Clean up error code related classes
2025-01-18 09:09:36 +09:00
김선우
fcadc2f825
Add connect function for creating connections from limbo db
2025-01-18 09:09:36 +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
김선우
90258a44b4
Add throwJavaException
2025-01-10 17:47:27 +09:00
김선우
3e26e7ebc5
Remove newSQLException and add throwLimboException in the LimboDB.java
2025-01-10 14:58:35 +09:00
김선우
b3762b3e92
Fix clippy
2025-01-08 23:01:24 +09:00
김선우
9e0e3dc81a
Update rust side logic to open database
2025-01-08 22:51:33 +09:00
김선우
370e1ca5c2
Add support Java bindings
...
This add support for Java bindings in the bindings/java directory.
2025-01-05 10:28:05 +02:00