odata-client/index.js

28 строки
506 B
JavaScript

'use strict';
const Odata = require('./odata');
const Identifier = require('./identifier');
const Literal = require('./literal');
const Expression = require('./expression');
module.exports = function(config)
{
return new Odata(config);
};
module.exports.expression = function(field, op, value)
{
return new Expression(field, op, value);
};
module.exports.identifier = function(value)
{
return new Identifier(value);
};
module.exports.literal = function(value)
{
return new Literal(value);
};