Skip to content

Commit

Permalink
docs: support current timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
shouwn committed Feb 21, 2024
1 parent ffb8cf6 commit 567966a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
7 changes: 3 additions & 4 deletions docs/en/jpql-with-kotlin-jdsl/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ size(path(Book::authors))

* CURRENT\_DATE (currentDate)
* CURRENT\_TIME (currentTime)
* CURRENT\_TIMESTAMP (currentTimestamp)
* LOCAL DATE (localDate)
* LOCAL TIME (localTime)
* LOCAL DATETIME (localDateTime)
Expand All @@ -272,17 +273,15 @@ currentDate()

currentTime()

currentTimestamp()

localDate()

localTime()

localDateTime()
```

| Function | DSL function |
|--------------------|--------------|
| CURRENT\_TIMESTAMP | not yet |

### Database function

Call `function()` to create predefined database functions and user-defined database functions.
Expand Down
7 changes: 3 additions & 4 deletions docs/ko/jpql-with-kotlin-jdsl/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ size(path(Book::authors))

* CURRENT\_DATE (currentDate)
* CURRENT\_TIME (currentTime)
* CURRENT\_TIMESTAMP (currentTimestamp)
* LOCAL DATE (localDate)
* LOCAL TIME (localTime)
* LOCAL DATETIME (localDateTime)
Expand All @@ -268,17 +269,15 @@ currentDate()

currentTime()

currentTimestamp()

localDate()

localTime()

localDateTime()
```

| Function | DSL function |
|--------------------|--------------|
| CURRENT\_TIMESTAMP | not yet |

### Database function

DB 함수나 사용자 정의 함수를 만들기 위해, `function()`을 사용할 수 있습니다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ open class Jpql : JpqlDsl {
}

/**
* Creates an expression that represents the current timestamp(datetime).
* Creates an expression that represents the current timestamp.
*
* This is the same as ```CURRENT_TIMESTAMP```.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ object Expressions {
}

/**
* Creates an expression that represents the current timestamp(datetime).
* Creates an expression that represents the current timestamp.
*
* This is the same as ```CURRENT_TIMESTAMP```.
*/
Expand Down

0 comments on commit 567966a

Please sign in to comment.