HariSekhon / SQL-scripts

100+ SQL Scripts - PostgreSQL, MySQL, Oracle, Google BigQuery, MariaDB, AWS Athena. DBA, Analytics, DevOps, performance engineering. Google BigQuery ML machine learning classification.
MIT License
392 stars 111 forks source link
athena aws aws-athena bigquery bigquery-ml dba devops gcp google-bigquery google-cloud-sql google-cloudsql-mysql machine-learning mariadb mysql oracle performance postgres postgresql rds sql

SQL Scripts

GitHub stars GitHub forks Lines of Code License My LinkedIn GitHub Last Commit

PostgreSQL MySQL MariaDB Oracle AWS Athena AWS Aurora Google BigQuery

CI Builds Overview ShellCheck YAML Markdown Validation Grype Kics Semgrep Semgrep Cloud Trivy

Linux Mac Repo on GitHub Repo on GitLab Repo on Azure DevOps Repo on BitBucket

git.io/SQL

Useful SQL scripts, split from DevOps Bash tools, for which this is now a submodule.

Hari Sekhon

Cloud & Big Data Contractor, United Kingdom

My LinkedIn
(you're welcome to connect with me on LinkedIn)

Inventory

DevOps / DBA

Analytics

Database Knowledge Base

See the pages for:

in the HariSekhon/Knowledge-Base repo:

Readme Card

DevOps SQL tooling

Readme Card

You can quickly test the PostgreSQL / MySQL scripts using postgres.sh / mysqld.sh / mariadb.sh in the DevOps Bash tools repo, which boots a docker container and drops straight in to a mysql / psql shell with this directory mounted at /sql and used as $PWD for fast easy sourcing eg.

postgres:

\i /sql/postgres_query_times.sql
\i postgres_query_times.sql

mysql:

source /sql/mysql_sessions.sql
\. mysql_sessions.sql

Related scripts

Star History

Star History Chart

git.io/SQL

More Core Repos

Knowledge

Readme Card Readme Card

DevOps Code

Readme Card Readme Card Readme Card Readme Card

Containerization

Readme Card Readme Card

CI/CD

Readme Card Readme Card

DBA - SQL

Readme Card

DevOps Reloaded

Readme Card Readme Card Readme Card Readme Card Readme Card

Templates

Readme Card Readme Card

Misc

Readme Card Readme Card

The rest of my original source repos are here.

Pre-built Docker images are available on my DockerHub.