Skip to content

Commit

Permalink
feat: support RANDOM()
Browse files Browse the repository at this point in the history
  • Loading branch information
ezoushen authored Oct 7, 2024
1 parent ebb6364 commit eb92be9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions field/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ func (f *function) FromUnixTime(date uint64, format string) String {
func (f *function) Rand() String {
return String{expr{e: clause.Expr{SQL: "RAND()"}}}
}

func (f *function) Random() String {
return String{expr{e: clause.Expr{SQL: "RANDOM()"}}}
}

0 comments on commit eb92be9

Please sign in to comment.