Replaces MongoDB support with PostgreSQL (#151)
- All schemas have been rewritten to a relational model - All services have been rewritten to accommodate the new data model - Adds idempotency keys to core endpoints allowing you to retry requests with no additional side effects - Adds staged jobs to avoid putting jobs in the queue when transactions abort - Adds atomic transactions to all methods with access to the data layer Co-authored-by: Oliver Windall Juhl <oliver@mrbltech.com>
This commit is contained in:
co-authored by
Oliver Windall Juhl
parent
5f819486fc
commit
f1baca3cbd
@@ -270,7 +270,6 @@ export const countries = [
|
||||
{ alpha2: "PR", name: "Puerto Rico", alpha3: "PRI", numeric: "630" },
|
||||
{ alpha2: "QA", name: "Qatar", alpha3: "QAT", numeric: "634" },
|
||||
{ alpha2: "RE", name: "Reunion", alpha3: "REU", numeric: "638" },
|
||||
{ alpha2: "RO", name: "Romania", alpha3: "ROU", numeric: "642" },
|
||||
{ alpha2: "RO", name: "Romania", alpha3: "ROM", numeric: "642" },
|
||||
{ alpha2: "RU", name: "Russian Federation", alpha3: "RUS", numeric: "643" },
|
||||
{ alpha2: "RW", name: "Rwanda", alpha3: "RWA", numeric: "646" },
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { DefaultNamingStrategy } from "typeorm"
|
||||
|
||||
export class ShortenedNamingStrategy extends DefaultNamingStrategy {
|
||||
eagerJoinRelationAlias(alias: string, propertyPath: string): string {
|
||||
const path = propertyPath
|
||||
.split(".")
|
||||
.map(p => p.substring(0, 2))
|
||||
.join("_")
|
||||
let out = alias + "_" + path
|
||||
let match = out.match(/_/g) || []
|
||||
return out + match.length
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user