FDO RFC 46 - Schema Attributes Capability

This page contains a request for comments document (RFC) for the FDO Open Source project. More FDO RFCs can be found on the RFCs page.


RFC Template Version(1.0)
Submission Date(Dec. 23 2009)
Last Modified(Jackie Ng) Timestamp
Author(Jackie Ng)
RFC Status(draft)
Implementation Status(draft)
Proposed Milestone(
Assigned PSC guide(s)(when determined)
Voting History(vote date)


The RFC extends the FDO capability API so that providers can indicate support for persistence of custom schema attributes.


Quoting the API description of FdoSchemaAttributeDictionary:

The FdoSchemaAttributeDictionary class maintains a dictionary of named attributes that provide a generic extensibility mechanism for objects in the feature schema. This mechanism can be used to dynamically extend schema elements in either an application or provider-specific manner.

It has come to my attention that not all providers support the persistence of custom schema attributes. At the moment there is no way for a client application to determine if a given provider has the ability to persist any custom attributes/metadata that would be attached to a Feature Schema (that is used for a FdoIApplySchema command)

Proposed Solution

Add a new API to FdoISchemaCapabilities:

        /// \brief
	/// Determines if the provider supports persistence of custom attributes in schema
	/// elements (Feature Schema, Class Definition, Property Definition)
	/// \return
	/// Returns true if the provider supports custom schema attributes
	FDO_API virtual bool SupportsCustomSchemaAttributes() = 0;

Providers will need to implement this new API and indicate their support.

Providers that can persist custom schema attributes would return true. Providers that can't would return false.

To my current knowledge, the current level of support is as follows:

ProviderSupports custom attributes
SQL Servertrue

This table is based on the assumption that providers based on the Generic RDBMS framework that utilise f_* metaschema tables (MySQL, SQL Server) would support custom attributes since they are stored in the f_sad table. OGR and ODBC are assumed to not support them due to the "catch-all" nature of these providers. Support in other providers is currently unknown and assumed to be false.

A formal capability API would greatly clear such assumptions.


This is an API addition. This only affects client applications that wish to extend FDO feature schemas with custom metadata. It is unknown how much MapGuide will be affected. More discussions will reveal the extent that these changes will affect.



Last modified 13 years ago Last modified on Dec 23, 2009, 5:22:02 AM
Note: See TracWiki for help on using the wiki.