feat(core): split foundational capabilities into dedicated crates
This commit is contained in:
402 files changed
+4386
-3367
No files matched your search
@@ -7,7 +7,7 @@ import java.util.List;
|
||||
/**
|
||||
* Decode PostGIS EWKB / WKB byte streams (and PGgeometry / hex strings) into
|
||||
* OGC Well-Known Text. Behaves identically to the Rust implementation in
|
||||
* {@code crates/dbx-core/src/db/postgres.rs::ewkb_to_wkt}, including the
|
||||
* {@code crates/dbx-drivers/src/db/postgres.rs::ewkb_to_wkt}, including the
|
||||
* {@code Z} / {@code M} / {@code ZM} dimension suffixes and {@code EMPTY}
|
||||
* geometries. Used by the JDBC agent layer so that PostgresLike databases
|
||||
* such as HighGo / KingBase / Vastbase / openGauss / GaussDB return WKT for
|
||||
|
||||
@@ -79,7 +79,7 @@ public abstract class PostgresLikeAgent extends AbstractJdbcAgent {
|
||||
/**
|
||||
* Wrap {@link AbstractJdbcAgent#resultValue} so PostGIS-style {@code geometry}
|
||||
* and {@code geography} columns are decoded into WKT (matching the native
|
||||
* tokio_postgres path in {@code crates/dbx-core/src/db/postgres.rs}).
|
||||
* tokio_postgres path in {@code crates/dbx-drivers/src/db/postgres.rs}).
|
||||
*/
|
||||
private JdbcExecutor.ColumnAwareResultValueReader geometryAwareResolver() {
|
||||
return (rs, index, sqlType, columnTypeName) -> {
|
||||
|
||||
@@ -22,7 +22,7 @@ class EwkbWktDecoderTest {
|
||||
|
||||
// ──────────────────────────────────────────────────────────────────────
|
||||
// Cross-checked against the Rust ewkb_to_wkt tests in
|
||||
// crates/dbx-core/src/db/postgres.rs (same hex inputs, same expected WKT).
|
||||
// crates/dbx-drivers/src/db/postgres.rs (same hex inputs, same expected WKT).
|
||||
// ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user