Skip to content
Snippets Groups Projects
Commit ec42de92 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

newWhere newSelect newWhereIfSet

parent 18bb892f
No related branches found
No related tags found
No related merge requests found
......@@ -687,16 +687,20 @@ SqlCondition.equalsNot = function(pField, pValue, pAlternativeCond, pAlias) {
return SqlCondition.begin(pAlias).andPrepare(pField, pValue, "# <> ?").build(pAlternativeCond);
}
function NewSelect(pFields, pAlias)
function newSelect(pFields, pAlias)
{
return new SqlBuilder(pAlias).select(pFields);
}
function NewWhere(pFieldOrCond, pValue, pCond, pFieldType, pAlias)
function newWhere(pFieldOrCond, pValue, pCond, pFieldType, pAlias)
{
return new SqlBuilder(pAlias).where(pFieldOrCond, pValue, pCond, pFieldType);
}
function newWhereIfSet(pFieldOrCond, pValue, pCond, pFieldType, pAlias)
{
return new SqlBuilder(pAlias).whereIfSet(pFieldOrCond, pValue, pCond, pFieldType);
}
/**
* Object for building sqls. The main purpose of this is to make it easy to use prepared statements.
* You should ALWAYS use prepared statemnts for Security and maybe also for performance reasons.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment