@adonisjs/lucid
Version:
SQL ORM built on top of Active Record pattern
36 lines (35 loc) • 998 B
JavaScript
;
/*
* @adonisjs/lucid
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.FactoryContext = void 0;
const faker_1 = require("@faker-js/faker");
class FactoryContext {
constructor(isStubbed, $trx) {
Object.defineProperty(this, "isStubbed", {
enumerable: true,
configurable: true,
writable: true,
value: isStubbed
});
Object.defineProperty(this, "$trx", {
enumerable: true,
configurable: true,
writable: true,
value: $trx
});
Object.defineProperty(this, "faker", {
enumerable: true,
configurable: true,
writable: true,
value: faker_1.faker
});
}
}
exports.FactoryContext = FactoryContext;