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
김선우
a82c459ed0
Implement close on LimboStatement and JDBC4Statement independently
2025-01-28 09:20:07 +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
김선우
f10b41c5b5
Pass io to statement from db
2025-01-24 15:43:44 +09:00
김선우
82e9fe0219
Handle invalid step results
2025-01-24 13:52:54 +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
김선우
f80823a297
Add LimboStepResult.java constructor
2025-01-19 21:56:50 +09:00
김선우
b80438226b
Commit for testing
2025-01-19 21:56:49 +09:00
김선우
0f46aaa0ec
Update JDBC4Statement.java execute method to return result correctly
2025-01-19 21:56:40 +09:00
김선우
6967b62bc0
Add invokeFrom field to NativeInvocation.java
2025-01-19 21:56:40 +09:00
김선우
33effdbfd4
Implement JDBC4ResultSEt.java's next() method
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
김선우
39245f35cc
Add TODOs
2025-01-18 09:09:36 +09:00
김선우
5b9a158db1
Remove unused methods
2025-01-18 09:09:36 +09:00
김선우
a3a31e787c
Initial pass on step function
2025-01-18 09:09:36 +09:00
김선우
7028d963ba
Remove unused methods for now
2025-01-18 09:09:36 +09:00
김선우
9765eaba52
Implement prepare
2025-01-18 09:09:36 +09:00
김선우
b77bf879f7
Implement prepare on java side
2025-01-18 09:09:36 +09:00
김선우
3e2e998060
Rename fileName to filePath for clarity
2025-01-18 09:09:36 +09:00
김선우
7e78ec448b
Clean up error code related classes
2025-01-18 09:09:36 +09:00
김선우
3409a82513
Add LimboDBFactory to support multiple LimboDB in single process
2025-01-18 09:09:36 +09:00
김선우
0a071d26f7
Add logback dependency for logging
2025-01-18 09:09:36 +09:00
김선우
a6f389125c
Implement minimal JDBC4Statement#exec(String sql)
2025-01-18 09:09:36 +09:00
김선우
8a1ffbbb65
Add JDBC4ResultSet
2025-01-18 09:09:36 +09:00
김선우
d151824f66
Update JDBC4Statement to include resultSetType, resultSetConcurrency, resultSetHoldability
2025-01-15 09:46:42 +09:00
김선우
7104a290e4
Basic support for close method
2025-01-15 09:20:44 +09:00
김선우
e5bf3c2644
Add Codes.java
2025-01-15 09:11:51 +09:00
김선우
eed610d457
Add JDBC4Statement.java
2025-01-15 09:08:45 +09:00
김선우
b3883d03d6
Apply necessary changes for java 8
2025-01-14 20:14:32 +09:00
김선우
a48cb8bbfc
Merge branch 'main' into java-nullability
2025-01-14 17:49:36 +09:00
김선우
04cd655574
Change VALID_URL_PREFIX to use sqlite instead
2025-01-14 17:19:33 +09: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
김선우
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