|
| 1 | +(datagrip)= |
| 2 | +# DataGrip |
| 3 | + |
| 4 | +```{div} |
| 5 | +:style: "float: right; margin-left: 0.5em" |
| 6 | +[{w=120px}](https://www.jetbrains.com/datagrip/) |
| 7 | +``` |
| 8 | + |
| 9 | +[DataGrip] is a cross-platform database IDE that is tailored to suit the |
| 10 | +specific needs of professional SQL developers. |
| 11 | + |
| 12 | +It is available as a standalone application and is also included into |
| 13 | +other JetBrains products like IntelliJ IDEA and PyCharm. |
| 14 | + |
| 15 | +Connecting DataGrip to CrateDB uses the [CrateDB JDBC Driver]. |
| 16 | + |
| 17 | +```{div} |
| 18 | +:style: "clear: both" |
| 19 | +``` |
| 20 | + |
| 21 | + |
| 22 | +## Install |
| 23 | + |
| 24 | +::::{grid} 2 |
| 25 | +:::{grid-item} |
| 26 | +For connecting to CrateDB, install the [CrateDB JDBC Driver] |
| 27 | +using the "Custom JARs" option when adding a database driver. |
| 28 | +::: |
| 29 | +:::{grid-item} |
| 30 | +{h=180px} |
| 31 | +{h=180px} |
| 32 | +::: |
| 33 | +:::{grid-item} |
| 34 | +[crate-jdbc-standalone] is the right choice here. |
| 35 | +For example, download and use the [crate-jdbc-standalone-2.7.0.jar] JAR file, |
| 36 | +and select the driver class `io.crate.client.jdbc.CrateDriver`. |
| 37 | +::: |
| 38 | +:::{grid-item} |
| 39 | +{w=400px} |
| 40 | +::: |
| 41 | +:::: |
| 42 | + |
| 43 | + |
| 44 | +## Connect |
| 45 | + |
| 46 | +::::{grid} 2 |
| 47 | + |
| 48 | +:::{grid-item} |
| 49 | +Now, you can add a Data Source using the CrateDB database driver. |
| 50 | +Please specify database URL and credentials of your CrateDB cluster. |
| 51 | +::: |
| 52 | +:::{grid-item} |
| 53 | +{w=480px} |
| 54 | +::: |
| 55 | +:::{grid-item} |
| 56 | +When connecting to [CrateDB Self-Managed] on localhost, |
| 57 | +for evaluation purposes, use: |
| 58 | +``` |
| 59 | +jdbc:crate://localhost:5432/ |
| 60 | +``` |
| 61 | + |
| 62 | +When connecting to [CrateDB Cloud], use: |
| 63 | +``` |
| 64 | +jdbc:crate://<clustername>.cratedb.net:5432/ |
| 65 | +``` |
| 66 | +::: |
| 67 | +:::{grid-item} |
| 68 | +{w=480px} |
| 69 | +::: |
| 70 | + |
| 71 | +:::: |
| 72 | + |
| 73 | + |
| 74 | +## Usage |
| 75 | +After refreshing, you can browse the data tree, and use the Query Console. |
| 76 | + |
| 77 | +{h=240px} |
| 78 | +{h=240px} |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +## Learn |
| 83 | + |
| 84 | +:::{rubric} Tutorials |
| 85 | +::: |
| 86 | +- [Blog: Use CrateDB With DataGrip] |
| 87 | + |
| 88 | +:::{rubric} Product |
| 89 | +::: |
| 90 | +- [CrateDB and DataGrip] |
| 91 | + |
| 92 | +:::{rubric} Notes |
| 93 | +::: |
| 94 | +:::{note} |
| 95 | +We are tracking interoperability issues per [Tool: DataGrip], and appreciate |
| 96 | +any contributions and reports. |
| 97 | +::: |
| 98 | + |
| 99 | + |
| 100 | +[Blog: Use CrateDB With DataGrip]: https://cratedb.com/blog/use-cratedb-with-datagrip-an-advanced-database-ide |
| 101 | +[CrateDB and DataGrip]: https://cratedb.com/integrations/cratedb-and-datagrip |
| 102 | +[CrateDB Cloud]: https://cratedb.com/product/cloud |
| 103 | +[CrateDB JDBC Driver]: https://cratedb.com/docs/jdbc/ |
| 104 | +[CrateDB Self-Managed]: https://cratedb.com/product/self-managed |
| 105 | +[crate-jdbc-standalone]: https://repo1.maven.org/maven2/io/crate/crate-jdbc-standalone/ |
| 106 | +[crate-jdbc-standalone-2.7.0.jar]: https://repo1.maven.org/maven2/io/crate/crate-jdbc-standalone/2.7.0/crate-jdbc-standalone-2.7.0.jar |
| 107 | +[DataGrip]: https://www.jetbrains.com/datagrip/ |
| 108 | +[Tool: DataGrip]: https://github.com/crate/crate/labels/tool%3A%20DataGrip |
0 commit comments