@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
21 lines (20 loc) • 577 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Trx = void 0;
const current_1 = require("../core/current");
const tables_1 = require("../core/tables");
class Trx {
tables;
#components;
constructor(components) {
this.#components = components;
const current = this.#components.get(current_1.Current);
this.tables = current.tables;
}
usingBlog(blogId) {
this.tables = this.#components.get(tables_1.Tables);
this.tables.index = blogId;
return this;
}
}
exports.Trx = Trx;