SchemaMapOperation

Key Name Default Value Required

SchemaMapOperation

0

No

Description

This property specifies how the connector operates on schema definitions. As an alternative to the Schema Editor application, you can use this property to create, import, export, and delete schema definitions.

Set this property to the of the following values:

  • 0: The connector does not make any changes to the schema definition.
  • 1: The connector samples the data, generates a schema definition, and then stores it in the JSON file specified by the LocalSchemaFile property.
  • Important:

    Important:

    Before generating a schema definition, make sure that primary indexes have been created for all of the buckets in your Couchbase database.

  • 2: The connector imports the schema definition from the JSON file specified by the LocalSchemaFile property into the database.
  • 3: The connector exports the schema definition from the database to the JSON file specified by the LocalSchemaFile property.
  • 4: The connector deletes the schema definition stored in the database.
Important:

Important:

It is recommended that you verify your settings when using the SchemaMapOperation property, because the changes made to the schema definition cannot be undone.

  • When the connector generates or exports a schema definition to a JSON file, the schema definition overwrites any existing content in the file.
  • If the database already contains a schema definition, importing another schema definition overwrites the existing one.
  • Deletions are permanent. It is recommended that you back up the schema definition by exporting it to a local JSON file before deleting it from the database.