@sqb/connect
Version:
Multi-dialect database connection framework written with TypeScript
22 lines (21 loc) • 481 B
JavaScript
import { Association } from './association.js';
export class AssociationNode extends Association {
getFirst() {
let l = this;
while (l.prior)
l = l.prior;
return l;
}
getLast() {
let l = this;
while (l.next)
l = l.next;
return l;
}
returnsMany() {
const n = super.returnsMany();
if (n)
return n;
return !!(this.next && this.next.returnsMany());
}
}