Previous topic  Top  Next topic  Print this Topic
 

FLToSqlRewriter (Rewriter For External Database Access)

 

The rewriter opimizes a database access. dbaccessuser literals are combined with some builtins and other dbaccessuser literals in one sql query to have restrictions.

Example

?- _dbaccessuser("projects","F"("id",?VAR1,"project",?VAR2),"conndatasource") AND _unify(?VAR1,"myproject").

will be rewritten to

?- _sqlexecute("select id, project from projects where project

=’myproject’”,

[VAR1,VAR2],..,"condatasource").