Skip to content

Commit

Permalink
Update docs for Access member expression
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Nov 3, 2024
1 parent 722dd40 commit 177df6a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
5 changes: 5 additions & 0 deletions docs/expression/access.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Member Access Expression

GitQL support Composite Type inspired by PostgreSQL, to access member of composite type
you should use `.` operator like in any programming language but with putting the composite value in `()` like
`(user).username` to make it different from table column `table.column`
3 changes: 2 additions & 1 deletion docs/expression/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ GitQL Expressions
- [Binary expressions](binary.md).
- [Unary expressions](unary.md).
- [Case expression](case.md).
- [Array expression](array.md).
- [Array expression](array.md).
- [Access Member](access.md).
31 changes: 16 additions & 15 deletions docs/structure/types.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
The GQL has a basic type system with only four types to be used for safe functions call and expressions.

### Types information's
| Name | Description |
| -------------- | ------------------------------------------- |
| Any | Used to represent Any data type |
| Text | Used to represent string literal |
| Integer | Used to represent integers |
| Float | Used to represent floats |
| Boolean | Used to represent boolean value |
| Date | Used to represent date |
| Time | Used to represent time |
| DateTime | Used to represent date & time |
| Array(type) | Used to represent an array of type |
| Range(type) | Used to represent a range of type |
| Variant(types) | Used to represent a variant of types |
| Optional(type) | Used to represent a optional type or none |
| Varargs(type) | Used to represent a variable arguments type |
| Name | Description |
| -------------- | -------------------------------------------- |
| Any | Used to represent Any data type |
| Text | Used to represent string literal |
| Integer | Used to represent integers |
| Float | Used to represent floats |
| Boolean | Used to represent boolean value |
| Date | Used to represent date |
| Time | Used to represent time |
| DateTime | Used to represent date & time |
| Array(type) | Used to represent an array of type |
| Range(type) | Used to represent a range of type |
| Variant(types) | Used to represent a variant of types |
| Optional(type) | Used to represent a optional type or none |
| Varargs(type) | Used to represent a variable arguments type |
| Composite | Used to represent a composite of other types |
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ nav:
- Unary: expression/unary.md
- Binary: expression/binary.md
- Case: expression/case.md
- Access Member: expression/access.md
- STD Functions and Operators:
- "functions/index.md"
- Logical: functions/logical.md
Expand Down

0 comments on commit 177df6a

Please sign in to comment.