@thisisagile/easy
Version:
Straightforward library for building domain-driven microservice architectures
1 lines • 859 B
Source Map (JSON)
{"version":3,"sources":["../src/sql/Join.ts"],"sourcesContent":["import { Column } from './Column';\nimport { Table } from './Table';\n\nexport class Join {\n readonly db;\n constructor(private first: Table, private second: Table, private c?: Column, private c2?: Column) {\n this.db = this.first.db;\n }\n\n on(c: Column, c2: Column): this {\n this.c = c;\n this.c2 = c2;\n return this;\n }\n\n toString(): string {\n return `${this.first} JOIN ${this.second} ON ${this.c} = ${this.c2}`;\n }\n}\n"],"mappings":";AAGO,IAAM,OAAN,MAAW;AAAA,EAEhB,YAAoB,OAAsB,QAAuB,GAAoB,IAAa;AAA9E;AAAsB;AAAuB;AAAoB;AACnF,SAAK,KAAK,KAAK,MAAM;AAAA,EACvB;AAAA,EAHS;AAAA,EAKT,GAAG,GAAW,IAAkB;AAC9B,SAAK,IAAI;AACT,SAAK,KAAK;AACV,WAAO;AAAA,EACT;AAAA,EAEA,WAAmB;AACjB,WAAO,GAAG,KAAK,KAAK,SAAS,KAAK,MAAM,OAAO,KAAK,CAAC,MAAM,KAAK,EAAE;AAAA,EACpE;AACF;","names":[]}