diff --git a/docs/connect/index.md b/docs/connect/index.md index 0ee3419..bd3debd 100644 --- a/docs/connect/index.md +++ b/docs/connect/index.md @@ -30,9 +30,15 @@ configured with corresponding connection properties. Please note that different applications and drivers may obtain connection properties in different formats. @@ -51,9 +57,9 @@ code span.pre { **Connection properties** -:Host: ``.cratedb.net +:Host: ``.cratedb.net :Port: 5432 (PostgreSQL) or
4200 (HTTP) -:User: `` +:User: `` :Pass: `` ::: @@ -62,24 +68,35 @@ code span.pre { :columns: 8 :margin: 0 :padding: 0 +:class: driver-slim **Connection-string examples** +

+ +**Native PostgreSQL, psql** +``` +postgresql://:@.cratedb.net:5432/doc +``` -A native PostgreSQL connection string, e.g. for `psql`. -
-`postgresql://:@.cratedb.net:5432/crate` +**JDBC: PostgreSQL pgJDBC** +``` +jdbc:postgresql://:@.cratedb.net:5432/doc +``` -A connection string for the CrateDB JDBC Driver, e.g. for Apache Flink. -
-`jdbc:crate://:@.cratedb.net:5432/` +**JDBC: CrateDB JDBC, e.g. Apache Flink** +``` +jdbc:crate://:@.cratedb.net:5432/doc +``` -A connection string for SQLAlchemy. -
-`crate://:@.cratedb.net:4200/?ssl=true` +**HTTP: Admin UI, CLI, CrateDB drivers** +``` +https://:@.cratedb.net:4200/ +``` -An HTTP URL to visit Admin UI, or use with `crash`. -
-`https://:@.cratedb.net:4200/` +**SQLAlchemy** +``` +crate://:@.cratedb.net:4200/?schema=doc&ssl=true +``` ::: @@ -111,24 +128,35 @@ An HTTP URL to visit Admin UI, or use with `crash`. :columns: 8 :margin: 0 :padding: 0 +:class: driver-slim **Connection-string examples** +

+ +**Native PostgreSQL, psql** +``` +postgresql://crate@localhost:5432/doc +``` -A native PostgreSQL connection string, e.g. for `psql`. -
-`postgresql://crate@localhost:5432/crate` +**JDBC: PostgreSQL pgJDBC** +``` +jdbc:crate://crate@localhost:5432/doc +``` -A connection string for the CrateDB JDBC Driver, e.g. for Apache Flink. -
-`jdbc:crate://crate@localhost:5432/` +**JDBC: CrateDB JDBC, e.g. Apache Flink** +``` +jdbc:crate://:@localhost:5432/doc +``` -A connection string for SQLAlchemy. -
-`crate://crate@localhost:4200/` +**HTTP: Admin UI, CLI, CrateDB drivers** +``` +http://crate@localhost:4200/ +``` -An HTTP URL to visit Admin UI, or use with `crash`. -
-`http://crate@localhost:4200/` +**SQLAlchemy** +``` +crate://crate@localhost:4200/?schema=doc +``` :::