Function
nameVariants
(
rawName: string,
ormName: string,
names?: Partial<NameVariants>
)
Source from the content-addressed store, hash-verified
| 899 | } |
| 900 | |
| 901 | function nameVariants( |
| 902 | rawName: string, |
| 903 | ormName: string, |
| 904 | names?: Partial<NameVariants> |
| 905 | ): NameVariants { |
| 906 | return { |
| 907 | convex: ormName, |
| 908 | drizzle: ormName, |
| 909 | prisma: ormName, |
| 910 | mongodb: rawName, |
| 911 | sql: rawName, |
| 912 | ...names, |
| 913 | }; |
| 914 | } |
| 915 | |
| 916 | export function compileForeignKey(key: ForeignKey, name: keyof NameVariants) { |
| 917 | return { |
Tested by
no test coverage detected