Search found 1 match

by Cynicszm
Wed 25 May 2022 09:50
Forum: dbForge for SQL Server
Topic: Data Generator - Python script use existing generators
Replies: 3
Views: 8765

Data Generator - Python script use existing generators

Hi all,

We would like to use some of the existing meaningful generators within a python script depending on the value in another column.

I can't seem to find any existing documentation on how to do this.

For example:

Code: Select all

if type_cd (column) is 'ISIN' then use the InternationalSecuritiesIdentificationNumber(ISIN,ISO6166) generator
else if type_cd = 'CUSIP' then use the USCommitteeonUniformSecurityIdentificationProceduresCode(CUSIP) generator
else if type_cd = 'X' then generate using a custom Regex
else... 
Any help appreciated