leizongmin/leizm-sql

增加 `.prefix(xxx)` 以支持表前缀

Ouverte

#10 ouverte le 26 avr. 2019

 (0 commentaire) (0 réaction) (0 personne assignée)TypeScript (3 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (5 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

import { prefix } from "@leizm/sql";
const { table } = prefix("my_");

table("user").select().where({ id: 1 }).limit(1).build();
// SELECT * FROM `my_user` WHERE `id`=1 LIMIT 1

Guide contributeur