Skip to content

Commit

Permalink
Merge pull request #123 from dolthub/daylon/fix-command-docs
Browse files Browse the repository at this point in the history
Fixed command docs generation
  • Loading branch information
Hydrocharged authored Feb 13, 2024
2 parents 6c3a877 + 3fc7af2 commit b139dfb
Show file tree
Hide file tree
Showing 23 changed files with 179,361 additions and 170,371 deletions.
13 changes: 10 additions & 3 deletions testing/generation/command_docs/ints.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ func GenerateRandomInts(count int64, max *big.Int) (randInts []*big.Int, err err
max = bigIntOne
}
randInts = make([]*big.Int, count)
randIntSet := make(map[string]struct{}, count*2)
for i := range randInts {
randInts[i], err = rand.Int(rand.Reader, max)
if err != nil {
return nil, err
for {
randInts[i], err = rand.Int(rand.Reader, max)
if err != nil {
return nil, err
}
if _, ok := randIntSet[randInts[i].String()]; !ok {
randIntSet[randInts[i].String()] = struct{}{}
break
}
}
}
sort.Slice(randInts, func(i, j int) bool {
Expand Down
9,159 changes: 9,072 additions & 87 deletions testing/generation/command_docs/output/alter_aggregate_test.go

Large diffs are not rendered by default.

18,334 changes: 9,167 additions & 9,167 deletions testing/generation/command_docs/output/alter_default_privileges_test.go

Large diffs are not rendered by default.

11,512 changes: 5,756 additions & 5,756 deletions testing/generation/command_docs/output/alter_function_test.go

Large diffs are not rendered by default.

19,464 changes: 9,732 additions & 9,732 deletions testing/generation/command_docs/output/alter_publication_test.go

Large diffs are not rendered by default.

9,210 changes: 4,605 additions & 4,605 deletions testing/generation/command_docs/output/alter_routine_test.go

Large diffs are not rendered by default.

12,902 changes: 6,451 additions & 6,451 deletions testing/generation/command_docs/output/alter_sequence_test.go

Large diffs are not rendered by default.

12,268 changes: 6,134 additions & 6,134 deletions testing/generation/command_docs/output/copy_test.go

Large diffs are not rendered by default.

19,994 changes: 9,997 additions & 9,997 deletions testing/generation/command_docs/output/create_database_test.go

Large diffs are not rendered by default.

20,002 changes: 10,001 additions & 10,001 deletions testing/generation/command_docs/output/create_foreign_table_test.go

Large diffs are not rendered by default.

19,971 changes: 9,985 additions & 9,986 deletions testing/generation/command_docs/output/create_function_test.go

Large diffs are not rendered by default.

19,358 changes: 9,679 additions & 9,679 deletions testing/generation/command_docs/output/create_procedure_test.go

Large diffs are not rendered by default.

19,734 changes: 9,867 additions & 9,867 deletions testing/generation/command_docs/output/create_publication_test.go

Large diffs are not rendered by default.

13,038 changes: 6,519 additions & 6,519 deletions testing/generation/command_docs/output/create_sequence_test.go

Large diffs are not rendered by default.

11,573 changes: 5,786 additions & 5,787 deletions testing/generation/command_docs/output/create_table_as_test.go

Large diffs are not rendered by default.

15,534 changes: 7,767 additions & 7,767 deletions testing/generation/command_docs/output/create_trigger_test.go

Large diffs are not rendered by default.

19,040 changes: 9,520 additions & 9,520 deletions testing/generation/command_docs/output/create_type_test.go

Large diffs are not rendered by default.

18,906 changes: 9,453 additions & 9,453 deletions testing/generation/command_docs/output/drop_aggregate_test.go

Large diffs are not rendered by default.

19,824 changes: 9,912 additions & 9,912 deletions testing/generation/command_docs/output/grant_test.go

Large diffs are not rendered by default.

19,992 changes: 9,996 additions & 9,996 deletions testing/generation/command_docs/output/merge_test.go

Large diffs are not rendered by default.

19,936 changes: 9,968 additions & 9,968 deletions testing/generation/command_docs/output/revoke_test.go

Large diffs are not rendered by default.

19,964 changes: 9,982 additions & 9,982 deletions testing/generation/command_docs/output/update_test.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions testing/generation/command_docs/synopses/alter_aggregate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ ALTER AGGREGATE $name$ ( $aggregate_signature$ ) SET SCHEMA $new_schema$
where $aggregate_signature$ is:

* |
[ $argmode$ ] [ $argname$ ] $argtype$ [ , ... ] |
[ [ $argmode$ ] [ $argname$ ] $argtype$ [ , ... ] ] ORDER BY [ $argmode$ ] [ $argname$ ] $argtype$ [ , ... ]
{ [ $argmode$ ] [ $argname$ ] $argtype$ } [ , ... ] |
[ { [ $argmode$ ] [ $argname$ ] $argtype$ } [ , ... ] ] ORDER BY { [ $argmode$ ] [ $argname$ ] $argtype$ } [ , ... ]

0 comments on commit b139dfb

Please sign in to comment.