Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Tidb | 33,735 | 68 | 101 | 6 hours ago | 1,289 | April 07, 2022 | 3,881 | apache-2.0 | Go | |
TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://tidbcloud.com/free-trial | ||||||||||
Metabase | 31,892 | 3 hours ago | 1 | June 08, 2022 | 2,788 | other | Clojure | |||
The simplest, fastest way to get business intelligence and analytics to everyone in your company :yum: | ||||||||||
Dbeaver | 31,326 | 4 hours ago | 1,796 | apache-2.0 | Java | |||||
Free universal database tool and SQL client | ||||||||||
Redash | 22,871 | 3 days ago | 2 | May 05, 2020 | 773 | bsd-2-clause | Python | |||
Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data. | ||||||||||
Directus | 20,797 | 50 | 3 hours ago | 55 | September 22, 2022 | 362 | gpl-3.0 | TypeScript | ||
The Modern Data Stack 🐰 — Directus is an instant REST+GraphQL API and intuitive no-code data collaboration app for any SQL database. | ||||||||||
Shardingsphere | 18,169 | 8 | 3 hours ago | 7 | June 04, 2020 | 593 | apache-2.0 | Java | ||
Ecosystem to transform any database into a distributed database system, and enhance it with sharding, elastic scaling, encryption features & more | ||||||||||
Knex | 17,374 | 18,096 | 2,788 | 10 hours ago | 248 | August 31, 2022 | 804 | mit | JavaScript | |
A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use. | ||||||||||
Cube | 14,827 | 3 hours ago | 755 | other | Rust | |||||
📊 Cube — The Semantic Layer for Building Data Applications | ||||||||||
Dolt | 14,491 | 2 | 4 hours ago | 214 | May 19, 2022 | 266 | apache-2.0 | Go | ||
Dolt – Git for Data | ||||||||||
Mysql | 13,170 | 4,892 | 7,815 | 2 days ago | 49 | March 25, 2022 | 106 | mpl-2.0 | Go | |
Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package |
Alternate MySQL backend for Hiera
This is a MySQL backend for Hiera inspired by hiera-mysql. Unfortunately no work has been done to that backend for the past 9 months and it was missing a couple of features I needed so I decided to pick up the torch and implement them myself.
In hiera-mysql you define the queries in the hiera.yaml file. I felt this was too restricting so instead hiera-mysql-backend uses, poorly named, sql files. This sql files follow the Hiera hierarchy.
hiera-mysql would also return the last matching query not the first one which I felt it was confusing.
hiera-mysql used the mysql gem, I am partial to mysql2
Exception handling. hiera-mysql would cause a puppet run to fail if one of the queries was incorrect. For example a fact that you are distributing with a module is needed for the query to return its data but that fact is not available outside the module having a SELECT * from %{custom_fact}
would make puppet runs fail.
The poorly named sql files are really yaml files where the key is the lookup key and the value is the SQL statement (it accepts interpolation)
As of version 0.0.4 you can also add connection information to these sql files, this allows you to connect to different databases. This is optional if no connection information is found it will use the default defined in your hiera.yaml config.
Lets assume your datadir is /etc/puppet/hieradata/
and your hierarchy for hiera just have a common. hiera-mysql-backend would look for /etc/puppet/hieradata/common.sql the common.sql would look like:
---
# This is optional, if not present it will use the default connection info from hiera.yaml
:dbconfig:
:host: database.example.com
:user: hieratest
:pass: sekret
:database: testhieradb
:port: 44445
applications: SELECT * FROM applications WHERE host='%{fqdn}';
coats: SELECT cut,name,type FROM coats WHERE color='brown';
If host
is not defined it will use localhost
as default.
If port
is not defined it will use the default 3306
mysql port
running hiera applications
would run the query against the configured database.
gem install hiera-mysql-backend
Hiera configuration is pretty simple
---
:backends:
- yaml
- mysql2
:yaml:
:datadir: /etc/puppet/hieradata
:mysql2:
:datadir: /etc/puppet/hieradata
:host: hostname
:user: username
:pass: password
:database: database
:port: 3306
:hierarchy:
- "%{::clientcert}"
- "%{::custom_location}"
- common
:logger: console
If host
is not defined it will use localhost
as default.
If port
is not defined it will use the default 3306
mysql port
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)