#[no_mangle]
pub unsafe extern "C" fn get_schema_id_from_config(
    connection_type: *const ConnectionType,
    config: *const Config
) -> FFIResult<SchemaId, GraphError>
Expand description

Safety

This function is unsafe because it dereferences a raw pointer

Arguments

  • config - a pointer to a Config struct

Returns

  • SchemaId - the schema id

Errors

  • GraphError - if the given connection type does not map to a schema in the config