-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afa625b
commit db378bd
Showing
63 changed files
with
955 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
backend/lib/azimutt_web/templates/website/connectors/_article.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div class="max-w-3xl mx-auto px-6 pt-6 lg:px-8"> | ||
<a href={Routes.website_path(@conn, :connectors)} class="text-lg font-semibold leading-8 tracking-tight text-indigo-600 hover:underline">← All connectors</a> | ||
<h1 class="mt-3 mb-6 text-4xl font-extrabold text-gray-900"><%= @title %></h1> | ||
<article class="max-w-3xl prose prose-a:text-indigo-600 prose-img:rounded-xl prose-img:my-3"> | ||
<%= if !Enum.empty?(@features) do %> | ||
<p> | ||
<%= for feature <- @features do %> | ||
<%= if feature.available do %> | ||
<span class="shrink-0 mr-1 mb-1 inline-flex items-center gap-x-1 rounded-md bg-green-50 px-2 py-1 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20"> | ||
<%= feature.name %> | ||
<Icon.check_badge kind="outline" class="h-5 w-5 stroke-green-700/50" /> | ||
</span> | ||
<% else %> | ||
<span class="shrink-0 mr-1 mb-1 inline-flex items-center gap-x-1 rounded-md bg-red-50 px-2 py-1 text-xs font-medium text-red-700 ring-1 ring-inset ring-red-600/20"> | ||
<%= feature.name %> | ||
<Icon.x_circle kind="outline" class="h-5 w-5 stroke-red-700/50" /> | ||
</span> | ||
<% end %> | ||
<% end %> | ||
</p> | ||
<% end %> | ||
<%= @inner_content %> | ||
</article> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
backend/lib/azimutt_web/templates/website/connectors/_card.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="relative p-6 rounded-xl bg-white border border-gray-200 hover:border-indigo-500 hover:shadow hover:shadow-indigo-500/50"> | ||
<img class="h-12" src={Routes.static_path(@conn, "/images/connectors/#{@connector.id}-icon.svg")} alt={"#{@connector.name} logo"}> | ||
<div class="mt-4"> | ||
<h3 class="text-base font-semibold leading-6 text-gray-900"> | ||
<a href={Routes.website_path(@conn, :connector, @connector.id)} class="focus:outline-none"> | ||
<span class="absolute inset-0" aria-hidden="true"></span> | ||
<%= @connector.name %> | ||
</a> | ||
</h3> | ||
<p class="mt-2 text-sm text-gray-500"><%= render "connectors/_description-short.html", conn: @conn, connector: @connector %></p> | ||
</div> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
backend/lib/azimutt_web/templates/website/connectors/_description-short.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<%= cond do %> | ||
<% @connector.id == "postgres" -> %> | ||
The most powerful open-source relational database, known for extensibility and SQL compliance. Now explorable with Azimutt. | ||
<% @connector.id == "mysql" -> %> | ||
The world's most popular open-source relational database, widely used for web applications. Now accessible within Azimutt. | ||
<% @connector.id == "mariadb" -> %> | ||
An open-source fork of MySQL with improved performance, scalability, and open development. Also available to connect to Azimutt. | ||
<% @connector.id == "sqlserver" -> %> | ||
A robust, enterprise-grade relational database by Microsoft, with integrated analytics and management tools. Integrated in Azimutt. | ||
<% @connector.id == "oracle" -> %> | ||
A high-performance relational database widely used in enterprises for mission-critical applications. Uniquely explorable with Azimutt. | ||
<% @connector.id == "mongodb" -> %> | ||
A NoSQL database designed for flexible, document-oriented storage and scalability. Collection schema and relations are inferred in Azimutt. | ||
<% @connector.id == "couchbase" -> %> | ||
A distributed NoSQL database optimized for interactive applications and real-time analytics. Infer collection schema and relations. | ||
<% @connector.id == "bigquery" -> %> | ||
Google’s fully-managed, serverless data warehouse for large-scale analytics using SQL. Discover your datasets with Azimutt. | ||
<% @connector.id == "snowflake" -> %> | ||
A cloud-native data platform for seamless data warehousing, sharing, and analytics. Easily explorable with this Azimutt connector. | ||
<% true -> %> | ||
This connector makes <%= @connector.name %> schema and data exploration seamless, using Azimutt nice diagrams and great documentation. | ||
<% end %> |
13 changes: 13 additions & 0 deletions
13
backend/lib/azimutt_web/templates/website/connectors/_footer.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="mx-auto max-w-5xl px-6 lg:px-8"> | ||
<div class="border-b border-gray-200 mb-10"> | ||
<h2 id="connectors" class="text-xl font-semibold leading-6 text-gray-900 pt-10">Other connectors you may want to check:</h2> | ||
</div> | ||
|
||
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-3"> | ||
<%= for connector <- Azimutt.connectors() |> Enum.filter(fn c -> c.id != @connector.id end) |> Enum.shuffle() |> Enum.take(3) do %> | ||
<%= render "connectors/_card.html", conn: @conn, connector: connector %> | ||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<%= render "_footer.html", conn: @conn %> |
3 changes: 3 additions & 0 deletions
3
backend/lib/azimutt_web/templates/website/connectors/_header.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="relative h-64 mb-24" style={"background: #{@connector.color}"}> | ||
<img src={Routes.static_path(@conn, "/images/connectors/#{@connector.id}-banner.png")} alt={"#{@connector.name} banner"} class="h-80 absolute top-10 left-0 right-0 mx-auto"> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
backend/lib/azimutt_web/templates/website/connectors/_promo.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<blockquote> | ||
Azimutt is making the first database explorer targeted for real world databases: large, heterogeneous and messy 😅 | ||
If you ever looked for an Entity-Relationship diagram tool (ERD) or drew your database schema on a sheet or whiteboard, Azimutt is made for you. | ||
But it goes well beyond that with database documentation, cross-database data exploration and even linter and monitoring of your database. | ||
</blockquote> |
52 changes: 52 additions & 0 deletions
52
backend/lib/azimutt_web/templates/website/connectors/bigquery.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<%= render "connectors/_header.html", conn: @conn, connector: @connector %> | ||
|
||
<%= connector_article conn: @conn, title: @seo.title, features: [ | ||
%{name: "Tables", available: true}, | ||
%{name: "Relations", available: true}, | ||
%{name: "Statistics", available: false}, | ||
%{name: "Query history", available: false}, | ||
%{name: "Query data", available: true} | ||
] do %> | ||
<p class="lead"> | ||
<a href="https://cloud.google.com/bigquery" target="_blank" rel="noopener noreferrer">BigQuery</a> is Google Cloud's fully-managed, | ||
serverless data warehouse designed for large-scale analytics and business intelligence. | ||
It enables users to quickly analyze massive datasets using SQL without worrying about infrastructure management. | ||
BigQuery is ideal for organizations that need to run complex queries on large volumes of data, offering near real-time insights with fast querying speeds. | ||
</p> | ||
<%= render "connectors/_promo.html" %> | ||
<p> | ||
The <a href="https://github.com/azimuttapp/azimutt/tree/main/libs/connector-bigquery" target="_blank" rel="noopener noreferrer">BigQuery connector</a> | ||
on GitHub if you are interested in how it works, or improving it.<br> | ||
You will most likely want to have a look at the <code>getSchema</code> function in | ||
<a href="https://github.com/azimuttapp/azimutt/blob/main/libs/connector-bigquery/src/bigquery.ts" target="_blank" rel="noopener noreferrer">src/bigquery.ts</a>. | ||
</p> | ||
<p> | ||
Few people know and use it but BigQuery has relations. They are not enforced like foreign keys on relational databases, but they help understand your data model.<br> | ||
You will most likely not have them, and Azimutt will <a href={Routes.website_path(@conn, :doc, ["infer-relations"])}>infer the relations</a> it can for you, | ||
but it could be a good idea to report them back to BigQuery as the golden source of truth. | ||
</p> | ||
|
||
<%= render "docs/_h3.html", title: "How to use it" %> | ||
<p>The BigQuery connector is already included in the Azimutt Gateway, use it following these steps:</p> | ||
<ul> | ||
<li>Launch your Gateway, if needed (for the local one use <code>npx azimutt@latest gateway</code>)</li> | ||
<li><a href={"#{Routes.elm_path(@conn, :new)}?database"}>Create a new project</a> or add a source to an existing one</li> | ||
<li>Download your account key on your computer</li> | ||
<li> | ||
Fill your BigQuery database url (ex: <code>bigquery://bigquery.googleapis.com/your_project?key=path/to/key.json</code>)<br> | ||
You can add additional paramters to your url to control the connector behavior: | ||
<ul> | ||
<li><strong>dataset</strong>: filter the datasets to inspect, supports the LIKE syntax</li> | ||
<li><strong>table</strong>: filter the tables to inspect, supports the LIKE syntax</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<img src={Routes.static_path(@conn, "/images/connectors/azimutt-project-new.png")} alt="Azimutt create project" /> | ||
<p>Here are <a href={Routes.website_path(@conn, :doc, ["data-privacy"])}>more details</a> about how Azimutt secure your data and especially your database url.</p> | ||
<p> | ||
Here is an example of what you can achieve with Azimutt: | ||
<img src={Routes.static_path(@conn, "/images/connectors/azimutt-diagram.png")} alt="Azimutt diagram" /> | ||
</p> | ||
<% end %> | ||
|
||
<%= render "connectors/_footer.html", conn: @conn, connector: @connector %> |
Oops, something went wrong.