1.1.3 • Published 11 months ago

sql-formatter-plush v1.1.3

Weekly downloads
2
License
MIT
Repository
-
Last release
11 months ago

sql-formatter-plush

安装

npm install sql-formatter-plush -S

类型声明

export type FromatterConfig = {
    language: "db2"|'n1ql'|'pl/sql'|"plsql"|"redshift"|"spark"|"sql"|"hive" //支持的sql语言 必填
    indent?: string // 缩进多少个空格 默认两个空格
    uppercase?: boolean // 开启大写 默认 false
    linesBetweenQueries?: number  // 查询之间有多少换行符 默认为1
}

type Format = (sql: string, config?: FromatterConfig) => string

export declare const format: Format

使用

import {format} from "sql-formatter-plush"
const newSql = format(<sql语句>)
1.1.3

11 months ago

1.1.2

11 months ago

1.1.1

3 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago