bigquery-client
Version:
A feature-rich Node.js client for Google BigQuery with support for CRUD operations, transactions, query building, and advanced features like aggregate functions, pagination, and logging.
12 lines (11 loc) • 461 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Validate = Validate;
require("reflect-metadata");
function Validate(validator, message) {
return function (target, propertyKey) {
const validations = Reflect.getMetadata('validations', target.constructor) || [];
validations.push({ propertyKey, validator, message });
Reflect.defineMetadata('validations', validations, target.constructor);
};
}