This step will generate an new instance (as a closure) mapped to database table or view. In ORM, it is often called Active Record which maps the database view to an class object.
And there’re two differences:
These two points may decrease the power of FPRM, but our main philosophy in GNU Artanis is that
That means we’re not going to develop a complicated ORM in GNU Artanis, but a promising way to interact with SQL easily. This is what SQL Mapping provided. FPRM aims to reduce states & complexity to provide reliability, and SQL-Mapping will provide a convenient way to handle complex SQL for better performance and security (from SQL-Injection).
(define m (map-table-from-DB rc/conn))
rc/conn can be route-context or connection of DB.
map-table-from-DB returns a function, we named it m here for explaining.