Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update databases doc #35

Merged
merged 7 commits into from
Dec 8, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added more databases, moved things around in the TOC
  • Loading branch information
cmontella committed Dec 8, 2016
commit 8a97d6507d801fc920cd5676bca0d7d6e2ebfd68
1 change: 1 addition & 0 deletions handbook/browser/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ menu:
main:
parent: "Databases"
title: "@browser"
weight: 2
---

# @browser
Expand Down
8 changes: 5 additions & 3 deletions handbook/databases.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ bind @browser

Eve has some built-in databases that have meaning to the runtime.

- @session - the default database when no database is specified with an action.
- @event - contains events originating from the DOM
- @browser - Eve clients in the browser renders records in this database as HTML elements.
- [@session](../session) - the default database when no database is specified with an action.
- [@view](../view) - records committed to `@view` are used to visualize data.
- [@event](../event) - contains events originating from the DOM
- [@browser](../browser) - Eve clients running in the browser render applicable records in this `@browser` as HTML elements.
- [@http](../http) - Stores records representing HTTP requests and responses

## Examples

Expand Down
1 change: 1 addition & 0 deletions handbook/datetime/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ menu:
main:
parent: "Standard Library"
title: "Date & Time"
weight: 5
---

# Date & Time
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions handbook/events/index.md → handbook/event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ menu:
main:
parent: "Databases"
title: "@event"
weight: 3
---

# @event
Expand Down
1 change: 1 addition & 0 deletions handbook/general/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ menu:
main:
parent: "Standard Library"
title: "General"
weight: 1
---

# General
Expand Down
1 change: 1 addition & 0 deletions handbook/http/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ menu:
main:
parent: "Databases"
title: "@http"
weight: 4
---

# @http
Expand Down
4 changes: 3 additions & 1 deletion handbook/math/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ menu:
main:
parent: "Standard Library"
title: "Math"
weight: 2
---

# Math
Expand All @@ -17,9 +18,10 @@ title: "Math"
## General Math

- [abs](abs) - Absolute value
- [ceil](ceil) - Round a number up
- [ceiling](ceiling) - Round a number up
- [floor](floor) - Round a number down
- [round](round) - Round a number
- [fix](fix) - Calculate the fix of a number
- [mod](mod) - Modulo division
- exp - The number `e` raised to a power
- log - Calculate the logarithm of a number
Expand Down
10 changes: 10 additions & 0 deletions handbook/session/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
menu:
main:
parent: "Databases"
title: "@session"
weight: 1
---

# @session

6 changes: 4 additions & 2 deletions handbook/standard-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ menu:
main:
parent: "Databases"
title: "Standard Library"
weight: 1
weight: 0
---


# Standard Library

The Eve standard library of functions is globally available, meaning you don't have to reference a specific database to use these functions.

## Description

- [general](../general) - General functions
- [math](../math) - General mathematical and trigonometric functions
- [strings](../strings) - Functions that manipulate strings
- [statistics](../statistics) - Functions that calculate statistical measures on values
Expand Down
1 change: 1 addition & 0 deletions handbook/statistics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ menu:
main:
parent: "Standard Library"
title: "Statistics"
weight: 4
---

# Statistics
Expand Down
8 changes: 3 additions & 5 deletions handbook/strings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ menu:
main:
parent: "Standard Library"
title: "Strings"
weight: 3
---

# Strings

- [length](length)
- [concatenate](concat)
- [replace](replace)
- [split](split)
- [join](join)
- [split](split) - split a string into tokens
- [join](join) - join tokens into a string
10 changes: 10 additions & 0 deletions handbook/view/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
menu:
main:
parent: "Databases"
title: "@view"
weight: 5
---

# @view