Skip to content
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

Fix typos #184

Merged
merged 1 commit into from Aug 7, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -51,13 +51,13 @@ make up

Then, you'll have 2 containers up and running in your system for every kind of database supported by dblab.

Run dblab openning a connection with the postgres container.
Run dblab opening a connection with the postgres container.

```bash
make run
```

You can do the same with the mysql container by runnning:
You can do the same with the mysql container by running:

```bash
make run-mysql
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -138,7 +138,7 @@ $ dblab --url postgres://user:password@host:port/database?sslmode=[mode] --schem
As a request made in [#125](https://github.com/danvergara/dblab/issues/125), support for MySQL/MariaDB sockets was integrated.

```sh
$ dblab --url "mysql://user:pasword@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
$ dblab --url "mysql://user:password@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
$ dblab --socket /path/to/socket/mysql.sock --user user --db dbname --pass password --ssl disable --port 5432 --driver mysql --limit 50
```

Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.md
Expand Up @@ -38,7 +38,7 @@ dblab --url postgres://user:password@host:port/database?sslmode=[mode] --schema
As a request made in [#125](https://github.com/danvergara/dblab/issues/125), support for MySQL/MariaDB sockets was integrated.

```{ .sh .copy }
dblab --url "mysql://user:pasword@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
dblab --url "mysql://user:password@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
```
```{ .sh .copy }
dblab --socket /path/to/socket/mysql.sock --user user --db dbname --pass password --ssl disable --port 5432 --driver mysql --limit 50
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Expand Up @@ -123,7 +123,7 @@ dblab --url postgres://user:password@host:port/database?sslmode=[mode] --schema
As a request made in [#125](https://github.com/danvergara/dblab/issues/125), support for MySQL/MariaDB sockets was integrated.

```{ .sh .copy }
dblab --url "mysql://user:pasword@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
dblab --url "mysql://user:password@unix(/path/to/socket/mysql.sock)/dbname?charset=utf8"
```
```{ .sh .copy }
dblab --socket /path/to/socket/mysql.sock --user user --db dbname --pass password --ssl disable --port 5432 --driver mysql --limit 50
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/client.go
Expand Up @@ -132,7 +132,7 @@ type Metadata struct {
TotalPages int
}

// Metadata retunrs the most relevant data from a given table.
// Metadata returns the most relevant data from a given table.
func (c *Client) Metadata(tableName string) (*Metadata, error) {
count, err := c.tableCount(tableName)
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config.go
Expand Up @@ -186,7 +186,7 @@ func (c *Config) GetSQLXDBConnStr() string {
return c.getSQLXConnStr(c.Host, c.DBName)
}

// getDBConnStr returns the connection string based on the provied host and db name.
// getDBConnStr returns the connection string based on the provided host and db name.
func (c *Config) getDBConnStr(dbhost, dbname string) string {
switch c.Driver {
case drivers.Postgres:
Expand Down Expand Up @@ -216,7 +216,7 @@ func (c *Config) getDBConnStr(dbhost, dbname string) string {
}
}

// getSQLXConnStr returns the connection string based on the provied host and db name.
// getSQLXConnStr returns the connection string based on the provided host and db name.
func (c *Config) getSQLXConnStr(dbhost, dbname string) string {
switch c.Driver {
case drivers.Postgres:
Expand Down
8 changes: 4 additions & 4 deletions pkg/form/form.go
Expand Up @@ -227,9 +227,9 @@ func initModel() Model {
sslKey.Placeholder = "The location for the secret key used for the client certificate"
sslKey.CharLimit = 1000

sslPassord := textinput.NewModel()
sslPassord.Placeholder = "The password for the secret key"
sslPassord.CharLimit = 1000
sslPassword := textinput.NewModel()
sslPassword.Placeholder = "The password for the secret key"
sslPassword.CharLimit = 1000

sslRootCert := textinput.NewModel()
sslRootCert.Placeholder = "The name of a file containing SSL certificate authority (CA) certificate(s)"
Expand All @@ -255,7 +255,7 @@ func initModel() Model {
filePathInput: filePath,
sslCertInput: sslCert,
sslKeyInput: sslKey,
sslPasswordInput: sslPassord,
sslPasswordInput: sslPassword,
sslRootcertInput: sslRootCert,
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/gui/view_helpers.go
Expand Up @@ -81,7 +81,7 @@ func moveCursorHorizontally(direction string) func(g *gocui.Gui, v *gocui.View)

// moveCursorVertically moves the cursor vertically given a direction.
// the down position is handled in a special way to prevent the cursor keep going
// down when there's no characaters in the next lines.
// down when there's no characters in the next lines.
func moveCursorVertically(direction string) func(g *gocui.Gui, v *gocui.View) error {
return func(g *gocui.Gui, v *gocui.View) error {
if v != nil {
Expand Down