![]() |
![]() |
![]() |
![]() |
GObject ├── GAFlightServer │ ╰── GAFlightSQLServer ├── GAFlightSQLClosePreparedStatementRequest ├── GAFlightSQLCommand │ ├── GAFlightSQLPreparedStatementUpdate │ ├── GAFlightSQLStatementQuery │ ├── GAFlightSQLStatementQueryTicket │ ╰── GAFlightSQLStatementUpdate ├── GAFlightSQLCreatePreparedStatementRequest ╰── GAFlightSQLCreatePreparedStatementResult
GAFlightSQLPreparedStatementUpdate is a class for a request that executes an update SQL prepared statement.
GAFlightSQLCreatePreparedStatementRequest is a class for a request that creates a SQL prepared statement.
GAFlightSQLCreatePreparedStatementResult is a class for a result of the request that creates a SQL prepared statement.
GAFlightSQLClosePreparedStatementRequest is a class for a request that closes a SQL prepared statement.
GAFlightSQLServer is a class to develop an Apache Arrow Flight SQL server.
const gchar *
gaflightsql_statement_query_get_query (GAFlightSQLStatementQuery *command
);
Since: 9.0.0
const gchar *
gaflightsql_statement_update_get_query
(GAFlightSQLStatementUpdate *command
);
Since: 13.0.0
GBytes *
gaflightsql_prepared_statement_update_get_handle
(GAFlightSQLPreparedStatementUpdate *command
);
Since: 14.0.0
GBytes * gaflightsql_statement_query_ticket_generate_handle (const gchar *query
,GError **error
);
Since: 9.0.0
GBytes *
gaflightsql_statement_query_ticket_get_handle
(GAFlightSQLStatementQueryTicket *command
);
Since: 9.0.0
const gchar *
gaflightsql_create_prepared_statement_request_get_query
(GAFlightSQLCreatePreparedStatementRequest *request
);
Since: 14.0.0
const gchar *
gaflightsql_create_prepared_statement_request_get_transaction_id
(GAFlightSQLCreatePreparedStatementRequest *request
);
Since: 14.0.0
GAFlightSQLCreatePreparedStatementResult *
gaflightsql_create_prepared_statement_result_new
(void
);
Since: 14.0.0
void gaflightsql_create_prepared_statement_result_set_dataset_schema (GAFlightSQLCreatePreparedStatementResult *result
,GArrowSchema *schema
);
Since: 14.0.0
GArrowSchema *
gaflightsql_create_prepared_statement_result_get_dataset_schema
(GAFlightSQLCreatePreparedStatementResult *result
);
Since: 14.0.0
void gaflightsql_create_prepared_statement_result_set_parameter_schema (GAFlightSQLCreatePreparedStatementResult *result
,GArrowSchema *schema
);
Since: 14.0.0
GArrowSchema *
gaflightsql_create_prepared_statement_result_get_parameter_schema
(GAFlightSQLCreatePreparedStatementResult *result
);
Since: 14.0.0
void gaflightsql_create_prepared_statement_result_set_handle (GAFlightSQLCreatePreparedStatementResult *result
,GBytes *handle
);
Since: 14.0.0
GBytes *
gaflightsql_create_prepared_statement_result_get_handle
(GAFlightSQLCreatePreparedStatementResult *result
);
Since: 14.0.0
GBytes *
gaflightsql_close_prepared_statement_request_get_handle
(GAFlightSQLClosePreparedStatementRequest *request
);
Since: 14.0.0
GAFlightInfo * gaflightsql_server_get_flight_info_statement (GAFlightSQLServer *server
,GAFlightServerCallContext *context
,GAFlightSQLStatementQuery *command
,GAFlightDescriptor *descriptor
,GError **error
);
server |
||
context |
||
command |
A GAFlightSQLStatementQuery to be executed. |
|
descriptor |
||
error |
[nullable] |
A GAFlightInfo for executing
a SQL query on success, NULL
on error.
[nullable][transfer full]
Since: 9.0.0
GAFlightDataStream * gaflightsql_server_do_get_statement (GAFlightSQLServer *server
,GAFlightServerCallContext *context
,GAFlightSQLStatementQueryTicket *ticket
,GError **error
);
A GAFlightDataStream
containing the query results on success, NULL
on error.
[nullable][transfer full]
Since: 9.0.0
gint64 gaflightsql_server_do_put_command_statement_update (GAFlightSQLServer *server
,GAFlightServerCallContext *context
,GAFlightSQLStatementUpdate *command
,GError **error
);
Since: 13.0.0
gint64 gaflightsql_server_do_put_prepared_statement_update (GAFlightSQLServer *server
,GAFlightServerCallContext *context
,GAFlightSQLPreparedStatementUpdate *command
,GAFlightMessageReader *reader
,GError **error
);
server |
||
context |
||
command |
||
reader |
A GAFlightMessageReader that reads uploaded record batches. |
|
error |
[nullable] |
Since: 14.0.0
GAFlightSQLCreatePreparedStatementResult * gaflightsql_server_create_prepared_statement (GAFlightSQLServer *server
,GAFlightServerCallContext *context
,GAFlightSQLCreatePreparedStatementRequest *request
,GError **error
);
A
GAFlightSQLCreatePreparedStatementResult containing the dataset
and parameter schemas and a handle for created statement on
success, NULL
on error.
[nullable][transfer full]
Since: 14.0.0
void gaflightsql_server_close_prepared_statement (GAFlightSQLServer *server
,GAFlightServerCallContext *context
,GAFlightSQLClosePreparedStatementRequest *request
,GError **error
);
Since: 14.0.0
#define GAFLIGHTSQL_TYPE_STATEMENT_QUERY (gaflightsql_statement_query_get_type())
struct GAFlightSQLStatementQueryClass { GAFlightSQLCommandClass parent_class; };
#define GAFLIGHTSQL_TYPE_STATEMENT_UPDATE (gaflightsql_statement_update_get_type())
struct GAFlightSQLStatementUpdateClass { GAFlightSQLCommandClass parent_class; };
struct GAFlightSQLPreparedStatementUpdateClass { GAFlightSQLCommandClass parent_class; };
struct GAFlightSQLStatementQueryTicketClass { GAFlightSQLCommandClass parent_class; };
#define GAFLIGHTSQL_TYPE_CREATE_PREPARED_STATEMENT_REQUEST
struct GAFlightSQLCreatePreparedStatementRequestClass { GObjectClass parent_class; };
#define GAFLIGHTSQL_TYPE_CREATE_PREPARED_STATEMENT_RESULT
struct GAFlightSQLCreatePreparedStatementResultClass { GObjectClass parent_class; };
#define GAFLIGHTSQL_TYPE_CLOSE_PREPARED_STATEMENT_REQUEST
struct GAFlightSQLClosePreparedStatementRequestClass { GObjectClass parent_class; };
struct GAFlightSQLServerClass { GAFlightServerClass parent_class; GAFlightInfo *(*get_flight_info_statement)( GAFlightSQLServer *server, GAFlightServerCallContext *context, GAFlightSQLStatementQuery *command, GAFlightDescriptor *descriptor, GError **error); GAFlightDataStream *(*do_get_statement)( GAFlightSQLServer *server, GAFlightServerCallContext *context, GAFlightSQLStatementQueryTicket *ticket, GError **error); gint64 (*do_put_command_statement_update)( GAFlightSQLServer *server, GAFlightServerCallContext *context, GAFlightSQLStatementUpdate *command, GError **error); gint64 (*do_put_prepared_statement_update)( GAFlightSQLServer *server, GAFlightServerCallContext *context, GAFlightSQLPreparedStatementUpdate *command, GAFlightMessageReader *reader, GError **error); GAFlightSQLCreatePreparedStatementResult *(*create_prepared_statement)( GAFlightSQLServer *server, GAFlightServerCallContext *context, GAFlightSQLCreatePreparedStatementRequest *request, GError **error); void (*close_prepared_statement)( GAFlightSQLServer *server, GAFlightServerCallContext *context, GAFlightSQLClosePreparedStatementRequest *request, GError **error); };
A virtual function to implement
|
||
A virtual function to implement |
||
A virtual function to implement
|
||
A virtual function to implement
|
||
A virtual function to implement
|
||
A virtual function to implement
|
Since: 9.0.0
typedef struct _GAFlightSQLClosePreparedStatementRequest GAFlightSQLClosePreparedStatementRequest;
typedef struct _GAFlightSQLCreatePreparedStatementRequest GAFlightSQLCreatePreparedStatementRequest;
typedef struct _GAFlightSQLCreatePreparedStatementResult GAFlightSQLCreatePreparedStatementResult;
typedef struct _GAFlightSQLPreparedStatementUpdate GAFlightSQLPreparedStatementUpdate;
“request”
property“request” gpointer
Owner: GAFlightSQLClosePreparedStatementRequest
Flags: Write / Construct Only
“command”
property“command” gpointer
The raw command struct.
Owner: GAFlightSQLCommand
Flags: Write / Construct Only
“request”
property“request” gpointer
Owner: GAFlightSQLCreatePreparedStatementRequest
Flags: Write / Construct Only