Skip to content

Fix all actual typos and use .codespellrc to skip others #519

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

Merged
merged 1 commit into from
Apr 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ pg:booktest@=>
```

While the `.usqlpass` functionality will not be removed, it is recommended to
[define named connections][connection-vars] preferrably via [the `config.yaml`
[define named connections][connection-vars] preferably via [the `config.yaml`
file][config].

<hr/>
Expand Down
4 changes: 2 additions & 2 deletions drivers/metadata/informationschema/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func New(opts ...metadata.ReaderOption) func(drivers.DB, ...metadata.ReaderOptio
systemSchemas: []string{"information_schema"},
dataTypeFormatter: func(col metadata.Column) string { return col.DataType },
}
// aply InformationSchema specific options
// apply InformationSchema specific options
for _, o := range opts {
o(s)
}
Expand Down Expand Up @@ -929,7 +929,7 @@ func (s InformationSchema) PrivilegeSummaries(f metadata.Filter) (*metadata.Priv
}

// In the query result, table and column level privileges will be on separate rows.
// Each table or column can have multple privileges (i.e rows).
// Each table or column can have multiple privileges (i.e rows).
// For table level privileges the `column_name` column is empty.
qstr := "SELECT * FROM (\n" + strings.Join(qstrs, "\nUNION ALL\n") + "\n) AS subquery"
rows, closeRows, err := s.query(
Expand Down
4 changes: 2 additions & 2 deletions drivers/metadata/postgres/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func TestIndexes(t *testing.T) {
for _, v := range tests {
result, err := r.Indexes(metadata.Filter{Name: fmt.Sprintf("%s_index", v.indexType)})
if err != nil {
log.Fatalf("Could not get Index informatin: %s", err)
log.Fatalf("Could not get Index information: %s", err)
}
for result.Next() {
accessMethods = append(accessMethods, result.Get().Type)
Expand All @@ -274,7 +274,7 @@ func TestIndexes(t *testing.T) {
t.Run("Get info about index access method for all table indexes.", func(t *testing.T) {
result, err := r.Indexes(metadata.Filter{Schema: schema, Parent: table})
if err != nil {
log.Fatalf("Could not get Index informatin: %s", err)
log.Fatalf("Could not get Index information: %s", err)
}
accessMethods := []string{}
for result.Next() {
Expand Down
2 changes: 1 addition & 1 deletion drivers/metadata/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,5 +269,5 @@ func (r LoggingReader) Query(q string, v ...interface{}) (*sql.Rows, CloseFunc,
return rows, func() { rows.Close() }, err
}

// CloseFunc should be called when result wont be processed anymore
// CloseFunc should be called when result won't be processed anymore
type CloseFunc func()