Skip to content

Commit

Permalink
Merge pull request #3 from Tnifey/develop
Browse files Browse the repository at this point in the history
v0.0.2
  • Loading branch information
Tnifey authored May 10, 2020
2 parents fb3e1d8 + e031895 commit 9b146fd
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 199 deletions.
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/

.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/
94 changes: 47 additions & 47 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
## 🥑 What?

AQL Template Tag Literal.
Selfcontaing ES Module with no dependencies.

## 🥑 Why?

To work with AQL Queries anywhere.

## 🥑 Usage

```ts
import { aql } from "https://raw.githubusercontent.com/Tnifey/aql-tag/master/src/mod.ts";
```

### example

Works like [AQL Helpers](https://www.arangodb.com/docs/stable/drivers/js-reference-aql.html).

TL;DR

```ts
// import { aql } from '...'

const arr = [1, 2, 3];

const query = aql`for u in ${arr}`;
```

_query returns_

```ts
{
query: "for u in @value0",
bindVars: { value0: [1,2,3] },
}
```

## 🥑 License

Apache License 2.0

Slightly modified by [Tnifey](https://github.com/Tnifey)

Source from: [https://github.com/arangodb/arangojs/blob/v6/src/aql-query.ts]

🥑
## 🥑 What?

AQL Template Tag Literal.
Selfcontaing ES Module with no dependencies.

## 🥑 Why?

To work with AQL Queries anywhere.

## 🥑 Usage

```ts
import { aql } from "https://raw.githubusercontent.com/Tnifey/aql-tag/master/src/mod.ts";
```

### example

Works like [AQL Helpers](https://www.arangodb.com/docs/stable/drivers/js-reference-aql.html).

TL;DR

```ts
// import { aql } from '...'

const arr = [1, 2, 3];

const query = aql`for u in ${arr}`;
```

_query returns_

```ts
{
query: "for u in @value0",
bindVars: { value0: [1,2,3] },
}
```

## 🥑 License

Apache License 2.0

Slightly modified by [Tnifey](https://github.com/Tnifey)

Source from: [https://github.com/arangodb/arangojs/blob/v6/src/aql-query.ts]

🥑
Loading

0 comments on commit 9b146fd

Please sign in to comment.