concatenation - Concatenate multiple SQL scripts using CodeSmith template -
i'm trying create simple tool concatenating sql scripts using codesmith.
i have template just:
- header (check whether tables exists, begin transaction)
- body (concatenated scripts should placed here)
- footer (commit or rollback transaction)
scripts stored in separate .sql files. need pick these files through codesmith explorer during template generation, don't know uitypeeditor
choose.
i've tried filenameeditor, allows choose 1 file.
is there existing uitypeeditor
purpose? or need create such myself?
if wish pick fie filenameeditor best choice. if wish choose multiple files i'd create own. if have parse sql files i'd recommend selecting base folder using uitypeeditor , using directoryinfo list of files matching pattern in directory.
if looking concat output of various templates can done via generator project file (see project options -> single file) out of box or update master template accomplish this.
Comments
Post a Comment