If we have table names that, on the db side, need to be quoted, the generated type names end up being invalid typescript names. Not certain what the ideal end result should be, but just figured this was worth documenting.
for instance:
CREATE TABLE "has spaces" (id int not null);
CREATE TABLE "has-dashes" (id int not null);
Produces
export namespace has spacesFields {
export type id = number;
}
export interface has spaces {
id: has spacesFields.id;
}
export namespace has-dashesFields {
export type id = number;
}
export interface has-dashes {
id: has-dashes.id;
}
If we have table names that, on the db side, need to be quoted, the generated type names end up being invalid typescript names. Not certain what the ideal end result should be, but just figured this was worth documenting.
for instance:
Produces