Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions c/driver/postgresql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ add_arrow_lib(adbc_driver_postgresql
connection.cc
error.cc
database.cc
ingest_partition.cc
postgresql.cc
result_helper.cc
result_reader.cc
Expand Down Expand Up @@ -81,6 +82,7 @@ if(ADBC_BUILD_TESTS)
EXTRA_LABELS
driver-postgresql
SOURCES
partitioned_ingest_test.cc
postgres_type_test.cc
postgresql_test.cc
EXTRA_LINK_LIBS
Expand Down
19 changes: 19 additions & 0 deletions c/driver/postgresql/connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,25 @@ class PostgresConnection {
AdbcStatusCode Init(struct AdbcDatabase* database, struct AdbcError* error);
AdbcStatusCode Release(struct AdbcError* error);
AdbcStatusCode Rollback(struct AdbcError* error);
AdbcStatusCode BeginIngestPartitions(const char* target_catalog,
const char* target_db_schema,
const char* target_table, const char* mode,
struct ArrowSchema* schema,
struct AdbcIngestHandle* out_handle,
struct AdbcError* error);
AdbcStatusCode WriteIngestPartition(const uint8_t* handle, size_t handle_len,
struct ArrowArrayStream* data,
struct AdbcIngestReceipt* out_receipt,
struct AdbcError* error);
AdbcStatusCode CommitIngestPartitions(const uint8_t* handle, size_t handle_len,
size_t num_receipts, const uint8_t** receipts,
const size_t* receipt_lens,
int64_t* rows_affected, struct AdbcError* error);
AdbcStatusCode AbortIngestPartitions(const uint8_t* handle, size_t handle_len,
size_t num_receipts, const uint8_t** receipts,
const size_t* receipt_lens,
struct AdbcError* error);

AdbcStatusCode SetOption(const char* key, const char* value, struct AdbcError* error);
AdbcStatusCode SetOptionBytes(const char* key, const uint8_t* value, size_t length,
struct AdbcError* error);
Expand Down
Loading
Loading