SchemaMapOperation

Default Value Data Type Required

0

Integer

No

Description

This property specifies how the connector operates on the schema.

  • 0: The connector does not make any changes to the schema.
  • 1: The connector samples the data, generates a schema, and stores the schema in the JSON file specified in the LocalSchemaFile property.
  • 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 from the JSON file specified in the LocalSchemaFile property into the database.
  • 3: The connector exports the schema from the database to the JSON file specified in the LocalSchemaFile property.
  • 4: The connector deletes the schema stored in the database.

Important:

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

  • When the connector generates or exports a schema to a JSON file, the schema replaces all existing content in the file.
  • If the database already contains a schema, the schema that you import overwrites it.
  • Schema deletion is permanent. It is recommended that you back up the schema by exporting it to a local JSON file before deleting it from the database.