CA Province generator

Last modified: April 3, 2025

The CA Province generator creates synthetic data representing the names of Canadian provinces and territories, such as Ontario, British Columbia, Quebec, and Alberta. It is used for testing, development, or data simulation purposes where Canadian regional data is needed, such as in address validation, geographic analysis, or logistics systems.

Note

If you select Canada from the Country-specific data list on the Options page of the Data Generator Project Properties wizard, the CA Province generator will be applied to columns that meet the matching rules, replacing the default (United States) generator.

CA country specific data

Generator properties

The table provides key details about the generator, including the short name, sample of the generated data, the supported data types, and whether it is specific to a particular country.

Short name Example of generated data Data type matching Country-specific
CA Province Ontario, New Brunswick, Yukon Territory, … charactercharacter varyingtext CA

Matching rules

The generator can be assigned to a column that matches any of the following rules:

  • The column name is ‘State’, regardless of the table name.
  • The column name starts with ‘Addr’ and ends with ‘3’, ‘4’, ‘5’, or ‘6’, with any or no characters in between, regardless of the table name.
  • The column name is ‘name’, and it belongs to a table whose name contains ‘State’ or ‘Province’, preceded or followed by any or no characters.

Configure additional options

The generator produces data based on a regular expression. Since it is built on the RegExp generator, see Regular Expression generator to customize settings and understand the correct usage of syntax.

The Text box displays a .csv file that contains a list of province codes. The default path to the file is C:\Users\Public\Documents\Devart\dbForge Studio for PostgreSQL\Data Generators\CAProvinceCodes.csv.

Preview of the column data generated by the CA Province generator

CA Province generator