format-sql

WebJar for format-sql

Лицензия

Лицензия

MIT
Категории

Категории

ORM Данные
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

format-sql
Последняя версия

Последняя версия

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

format-sql
WebJar for format-sql
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/SethRAH/format-sql

Скачать format-sql

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/format-sql/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>format-sql</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/format-sql/
implementation 'org.webjars.npm:format-sql:0.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/format-sql/
implementation ("org.webjars.npm:format-sql:0.1.0")
'org.webjars.npm:format-sql:jar:0.1.0'
<dependency org="org.webjars.npm" name="format-sql" rev="0.1.0">
  <artifact name="format-sql" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='format-sql', version='0.1.0')
)
libraryDependencies += "org.webjars.npm" % "format-sql" % "0.1.0"
[org.webjars.npm/format-sql "0.1.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

format-sql

small JavaScript module to format SQL queries with more readable line breaks etc. Will be configurable to allow the module's user to add their own keywords

Installation

npm install format-sql --save

Usage

var sql = "SELECT employeeId, givenName, familialName FROM dbo.Employee WHERE familialName LIKE '%son%' ORDER BY familialName asc, givenName asc",
    formatted = formatSql.formatQuery(sql);
     
console.log('sql', sql, 'formatted', formatted);

Tests

To-Do: add some tests!

Contributing

Currently don't have a style guide or a roadmap

Release History

  • 0.1.0 Initial Release

Версии библиотеки

Версия
0.1.0