IRPCObjectTypesAdmin.ParseSQLSelectStatement

View as Markdown

Administration API / specialized admin session idempotent

Connects to an external database and returns the source table and columns of a SELECT statement, to set up the column mappings of an external object type.

ServiceObject type administration MFiles.IRPCObjectTypesAdmin
gRPC method/MFiles.IRPCObjectTypesAdmin/ParseSQLSelectStatement
HTTP (mf-http-grpc)POST /grpc/v1/parse-sqlselect-statement
RequestParseSQLSelectStatementRequest
ResponseParseSQLSelectStatementResponse
Book and levelAdministration API, specialized
Kindadmin
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentyes
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: ParseSQLSelectStatementRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
connection_stringstringOLE DB connection string of the external database.
select_statementstringThe SELECT statement to parse.

Response: ParseSQLSelectStatementResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
source_tablestringThe name of the source table.
putf8szcolmappings[]repeated ObjectTypeColumnMappingOne mapping per column in the SELECT list, with only the source column details set; fill in the target property definitions yourself.
putf8szcolmappings[].object_typeint32Object type ID.
putf8szcolmappings[].ordinalint32One-based source field ordinal.
putf8szcolmappings[].source_fieldstringSource field name.
putf8szcolmappings[].data_typeuint32Source field's data type.
putf8szcolmappings[].target_property_defint32Target property definition.
putf8szcolmappings[].can_insertboolIs the source field part of insertion operations?
putf8szcolmappings[].can_updateboolIs the source field part of update operations?