You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* build(compose): add the mssql service to the compose service
* build(dbmigrate): add everything necessary to run migrations on mssql
* feat(client): add mssql client
* feat(connection): add a parser to generate or process a dsn connection string to connnect with sql server
* feat(command): add new connection as flags to connect with sql server
* feat(config): add a sql as an option to connect through a config file
* build(make): add targets to connect with sql server container
* fix: remove sql migrations
* feat(form): add sql to the bubbletea app
* docs(readme): add docs on how to connect with the sql server
## run-mysql-socket: Runs the application with a connection to mysql through a socket file. In this example the socke file is located in /var/lib/mysql/mysql.sock.
## run-mysql-socket-url: Runs the application with a connection to mysql through a socket file. In this example the socke file is located in /var/lib/mysql/mysql.sock.
__Interactive client for PostgreSQL, MySQL, SQLite3and Oracle.__
8
+
__Interactive client for PostgreSQL, MySQL, SQLite3, Oracle and SQL Server.__
9
9
10
10
<imgsrc="screenshots/dblab-cover.png" />
11
11
@@ -37,7 +37,7 @@ dblab is a fast and lightweight interactive terminal based UI application for Po
37
37
written in Go and works on OSX, Linux and Windows machines. Main idea behind using Go for backend development
38
38
is to utilize ability of the compiler to produce zero-dependency binaries for
39
39
multiple platforms. dblab was created as an attempt to build very simple and portable
40
-
application to work with local or remote PostgreSQL/MySQL/SQLite3/Oracle databases.
40
+
application to work with local or remote PostgreSQL/MySQL/SQLite3/Oracle/SQL Server databases.
41
41
42
42
## Features
43
43
@@ -91,27 +91,30 @@ Available Commands:
91
91
version The version of the project
92
92
93
93
Flags:
94
-
--cfg-name string Database config name section
95
-
--config Get the connection data from a config file (default locations are: current directory, $HOME/.dblab.yaml or $XDG_CONFIG_HOME/.dblab.yaml)
96
-
--db string Database name
97
-
--driver string Database driver
98
-
-h, --help help for dblab
99
-
--host string Server host name or IP
100
-
--limit uint Size of the result set from the table content query (should be greater than zero, otherwise the app will error out) (default 100)
101
-
--pass string Password for user
102
-
--port string Server port
103
-
--schema string Database schema (postgres only)
104
-
--socket string Path to a Unix socket file
105
-
--ssl string SSL mode
106
-
--ssl-verify string [enable|disable] or [true|false] enable ssl verify for the server
107
-
--sslcert string This parameter specifies the file name of the client SSL certificate, replacing the default ~/.postgresql/postgresql.crt
108
-
--sslkey string This parameter specifies the location for the secret key used for the client certificate. It can either specify a file name that will be used instead of the default ~/.postgresql/postgresql.key, or it can specify a key obtained from an external “engine”
109
-
--sslpassword string This parameter specifies the password for the secret key specified in sslkey
110
-
--sslrootcert string This parameter specifies the name of a file containing SSL certificate authority (CA) certificate(s) The default is ~/.postgresql/root.crt
111
-
--trace-file string File name for trace log
112
-
-u, --url string Database connection string
113
-
--user string Database user
114
-
--wallet string Path for auto-login oracle wallet
94
+
--cfg-name string Database config name section
95
+
--config Get the connection data from a config file (default locations are: current directory, $HOME/.dblab.yaml or $XDG_CONFIG_HOME/.dblab.yaml)
96
+
--db string Database name
97
+
--driver string Database driver
98
+
--encrypt string [strict|disable|false|true] data sent between client and server is encrypted or not
99
+
-h, --help help for dblab
100
+
--host string Server host name or IP
101
+
--limit uint Size of the result set from the table content query (should be greater than zero, otherwise the app will error out) (default 100)
102
+
--pass string Password for user
103
+
--port string Server port
104
+
--schema string Database schema (postgres only)
105
+
--socket string Path to a Unix socket file
106
+
--ssl string SSL mode
107
+
--ssl-verify string [enable|disable] or [true|false] enable ssl verify for the server
108
+
--sslcert string This parameter specifies the file name of the client SSL certificate, replacing the default ~/.postgresql/postgresql.crt
109
+
--sslkey string This parameter specifies the location for the secret key used for the client certificate. It can either specify a file name that will be used instead of the default ~/.postgresql/postgresql.key, or it can specify a key obtained from an external “engine”
110
+
--sslpassword string This parameter specifies the password for the secret key specified in sslkey
111
+
--sslrootcert string This parameter specifies the name of a file containing SSL certificate authority (CA) certificate(s) The default is ~/.postgresql/root.crt
112
+
--timeout string in seconds (default is 0 for no timeout), set to 0 for no timeout. Recommended to set to 0 and use context to manage query and connection timeouts
113
+
--trace-file string File name for trace log
114
+
--trust-server-certificate string [false|true] server certificate is checked or not
115
+
-u, --url string Database connection string
116
+
--user string Database user
117
+
--wallet string Path for auto-login oracle wallet
115
118
116
119
Use "dblab [command] --help" for more information about a command.
117
120
```
@@ -126,6 +129,7 @@ You can start the app passing no flags or parameters, you'll be asked for connec
StringVarP(&sslVerify, "ssl-verify", "", "", "[enable|disable] or [true|false] enable ssl verify for the server")
167
174
rootCmd.Flags().StringVarP(&traceFile, "trace-file", "", "", "File name for trace log")
168
175
rootCmd.Flags().StringVarP(&wallet, "wallet", "", "", "Path for auto-login oracle wallet")
176
+
177
+
rootCmd.Flags().
178
+
StringVarP(&encrypt, "encrypt", "", "", "[strict|disable|false|true] data sent between client and server is encrypted or not")
179
+
rootCmd.Flags().
180
+
StringVarP(&trustServerCertificate, "trust-server-certificate", "", "", "[false|true] server certificate is checked or not")
181
+
rootCmd.Flags().
182
+
StringVarP(&connectionTimeout, "timeout", "", "", "in seconds (default is 0 for no timeout), set to 0 for no timeout. Recommended to set to 0 and use context to manage query and connection timeouts")
0 commit comments