Skip to main content
Module

x/vorm/methods.ts>Vorm

VORM - VOXO ORM like Deno module with a simple interface and hot-swappable backends
Latest
class Vorm
extends Database
import { Vorm } from "https://deno.land/x/vorm@v1.0.1/methods.ts";

Methods

addUserTenant(tenantId: number, userId: number): Promise<Res>

Adds a user to a tenant

getUserByEmail(email: string): Promise<Res>

Returns the user with the given email

getUserById(id: number): Promise<Res>

Returns the user with the given id

getUsersByAccountId(id: number): Promise<Res>

Returns the users with the given account id