PJS ORM
About This Space
A simple demo to show the recently ORM added into PJS in mid 2019.
Last updated on April 6, 2020
Forked from: /scotroach/pjs-orm/
Public Permissions: View Open/Fork Run Comment
This is an overview of the files within this project and to show usage of the recently added ORM into PJS.
Starting with file customers.dbdefn.js
- This is the business logic and mapper and model builder.
test.js - server side node program does actions against that dbdefn
Under the covers the data access is all happening by way of this pjs.dataapi object. The dataapi object constructs the basic SQL statements for the supported database. There really is not a whole lot difference, but enought that I seen this object was necessary.
Check out documentation for profound.util.dataapi
Soon we will have our DataArea API's, when working against a non IBMi db, use SQL as well. Customer code will not have to change, they will, however, need to "transfer" the data from the ibmi object to that other db with our tool.
Some things not "yet" being supported
- Record locking
- Multiple inserts within a single statements
More Spaces By Diego Palumbo (@diego-palumbo)
This space illustrates the simplest way to load a Rich Display grid with data, where all records are sent to the grid in bulk.
3205
0
0
This example includes a select box on each row of the grid that allows you to change the color of that grid row. It also includes a select box that will allow you to change the text decoration for fields on that row.
3002
0
0
3149
0
0
Expanded version of the Grid template to add additional paging buttons and modify how the data is supplied to the Grid widget.
3144
0
0
3146
0
0
RPG Application that allows you to work with Insurance Claims converted to Node.js to run in the cloud, using any database
3164
0
0
3348
0
0
Be the first to comment:
Comments