@profoundlogic/codermake 1.4.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/bin/index.js +1 -1
- package/dist/bin/preprocess-rpg-copy.js +1 -1
- package/dist/bin/rdf-to-dds.js +1 -1
- package/dist/lib/discovery.js +1 -1
- package/dist/lib/executor.js +1 -1
- package/dist/lib/generate-rdf-dds.js +1 -1
- package/dist/lib/license.js +1 -1
- package/dist/lib/makefile-generator.js +1 -1
- package/dist/lib/platform.js +1 -1
- package/dist/lib/preprocessor.js +1 -1
- package/dist/lib/rdf-to-post-data.js +1 -1
- package/dist/lib/rpg-copy-preprocessor.js +1 -1
- package/dist/lib/ssh.js +1 -1
- package/dist/lib/writer.js +1 -1
- package/dist/makefiles/ibmi.mk +9 -2
- package/dist/makefiles/unix.mk +9 -2
- package/package.json +1 -1
- package/skills/codermake/SKILL.md +1 -0
- package/skills/codermake/references/compile-listings.md +1 -1
- package/skills/codermake/references/file-types.md +10 -0
package/dist/makefiles/unix.mk
CHANGED
|
@@ -182,7 +182,7 @@ endef
|
|
|
182
182
|
define BUILD_SQLRPGLE_PGM
|
|
183
183
|
$(call SETUP_LOG,$(notdir $@))
|
|
184
184
|
$(call RPG_PREPROCESS_SOURCES,$(filter-out build/%,$^))
|
|
185
|
-
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*
|
|
185
|
+
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*pgm) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl2) compileopt('incdir(''.'') tgtccsid(*job) output(*print)') dbgview(*source)")
|
|
186
186
|
$(call RPG_CLEANUP_SOURCES)
|
|
187
187
|
touch '$@'
|
|
188
188
|
endef
|
|
@@ -200,7 +200,7 @@ endef
|
|
|
200
200
|
define BUILD_SQLRPGLE_MODULE
|
|
201
201
|
$(call SETUP_LOG,$(notdir $@))
|
|
202
202
|
$(call RPG_PREPROCESS_SOURCES,$(filter-out build/%,$^))
|
|
203
|
-
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*
|
|
203
|
+
$(call REMOTE_BUILD_FROM,$$RPG_SRC_ROOT,$(filter-out build/%,$^),system "crtsqlrpgi obj($(LIBRARY)/$(basename $(@F))) objtype(*module) srcstmf('$<') cvtccsid(*job) output(*print) rpgppopt(*lvl2) compileopt('incdir(''.'') tgtccsid(*job) output(*print)') dbgview(*source)")
|
|
204
204
|
$(call RPG_CLEANUP_SOURCES)
|
|
205
205
|
touch '$@'
|
|
206
206
|
endef
|
|
@@ -318,6 +318,13 @@ $(call REMOTE_BUILD,$(filter-out build/%,$^),system "runsqlstm srcstmf('$<') com
|
|
|
318
318
|
touch '$@'
|
|
319
319
|
endef
|
|
320
320
|
|
|
321
|
+
# Build SQL view
|
|
322
|
+
define BUILD_SQLVIEW_TO_FILE
|
|
323
|
+
$(call SETUP_LOG,$(notdir $@))
|
|
324
|
+
$(call REMOTE_BUILD,$(filter-out build/%,$^),system "runsqlstm srcstmf('$<') commit(*none) dftrdbcol($(LIBRARY))")
|
|
325
|
+
touch '$@'
|
|
326
|
+
endef
|
|
327
|
+
|
|
321
328
|
# Build SQL procedure
|
|
322
329
|
define BUILD_SQLPROC_TO_PGM
|
|
323
330
|
$(call SETUP_LOG,$(notdir $@))
|
package/package.json
CHANGED
|
@@ -145,6 +145,7 @@ ENDPGMEXP
|
|
|
145
145
|
| `.prtf` | `.file` | Printer File (*FILE) | `CRTPRTF` |
|
|
146
146
|
| `.table.sql` | `.file` | SQL Table (*FILE) | `RUNSQLSTM` |
|
|
147
147
|
| `.index.sql` | `.file` | SQL Index (*FILE) | `RUNSQLSTM` |
|
|
148
|
+
| `.view.sql` | `.file` | SQL View (*FILE) | `RUNSQLSTM` |
|
|
148
149
|
| `.file` + `.msgf` | `.menu` | Menu (*MENU) | `CRTMNU` |
|
|
149
150
|
| `.msgf` (CL src) | `.msgf` | Message File (*MSGF) | `CRTMSGF` / `ADDMSGD` |
|
|
150
151
|
| `.bnddir` (CL src) | `.bnddir` | Binding Dir (*BNDDIR) | `CRTBNDDIR` / `ADDBNDDIRE` |
|
|
@@ -98,7 +98,7 @@ CPD7344 30 Keyword REF not valid for this type of file.
|
|
|
98
98
|
|
|
99
99
|
DDS errors typically reference a specific record format and line within the source.
|
|
100
100
|
|
|
101
|
-
## SQL DDL listings (.table.sql, .index.sql, .proc.sql)
|
|
101
|
+
## SQL DDL listings (.table.sql, .index.sql, .view.sql, .proc.sql)
|
|
102
102
|
|
|
103
103
|
SQL DDL statements executed via `RUNSQLSTM` produce SQL messages:
|
|
104
104
|
|
|
@@ -202,6 +202,16 @@ empname.file: empname.index.sql employee.file
|
|
|
202
202
|
|
|
203
203
|
**CL command:** `RUNSQLSTM SRCSTMF('src/empname.index.sql') COMMIT(*NONE) DFTRDBCOL(LIB)`
|
|
204
204
|
|
|
205
|
+
### SQL view from .view.sql
|
|
206
|
+
|
|
207
|
+
Creates a SQL view by running a DDL script. Typically depends on the tables it references.
|
|
208
|
+
|
|
209
|
+
```makefile
|
|
210
|
+
empview.file: empview.view.sql employee.file
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**CL command:** `RUNSQLSTM SRCSTMF('src/empview.view.sql') COMMIT(*NONE) DFTRDBCOL(LIB)`
|
|
214
|
+
|
|
205
215
|
## Menus (.menu)
|
|
206
216
|
|
|
207
217
|
A menu object requires both a display file and a message file.
|