Bug - snake_case and views
views don't obey snake_case
...
firstName: t.varchar({ length: 256 }),
lastName: t.varchar({ length: 256 }),
...
export const userView = t.pgView('user_view').as((qb) => qb.select().from(users).where(eq(users.role, 'user')));
CREATE VIEW "public"."user_view" AS (select "id", "uuid", "name", "firstName", "lastName", "email", "age", "invitee", "role", "internalRole", "internalRole2", "updated_at", "created_at", "deleted_at" from "users" where "users"."role" = 'user');
783 | query.execute()
784 | }
785 |
786 | function ErrorResponse(x) {
787 | query && (query.cursorFn || query.describeFirst) && write(Sync)
788 | const error = Errors.postgres(parseError(x))
^
PostgresError: column "firstName" does not exist
0 Replies