{"id":17969015,"url":"https://github.com/gabeweiss/sql_data_randomizer","last_synced_at":"2025-03-25T10:32:41.665Z","repository":{"id":128385188,"uuid":"226172526","full_name":"GabeWeiss/sql_data_randomizer","owner":"GabeWeiss","description":"Holds some scripts I've written to help quickly get some random data into a SQL database.","archived":false,"fork":false,"pushed_at":"2021-09-13T23:45:18.000Z","size":76,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T01:11:31.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GabeWeiss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-05T19:18:29.000Z","updated_at":"2024-04-18T06:45:05.000Z","dependencies_parsed_at":"2023-05-11T13:38:19.323Z","dependency_job_id":null,"html_url":"https://github.com/GabeWeiss/sql_data_randomizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabeWeiss%2Fsql_data_randomizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabeWeiss%2Fsql_data_randomizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabeWeiss%2Fsql_data_randomizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabeWeiss%2Fsql_data_randomizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabeWeiss","download_url":"https://codeload.github.com/GabeWeiss/sql_data_randomizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245444485,"owners_count":20616389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T14:42:08.457Z","updated_at":"2025-03-25T10:32:41.163Z","avatar_url":"https://github.com/GabeWeiss.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sql_data_randomizer\nCouple scripts I wrote to help quickly get some random data into a MySQL or PostgreSQL database. If you're looking for something similar for SQL Server, you can find a good one here: https://github.com/dmahugh/cloudsql-samples/blob/master/faker_sample.py\n\nIt connects on 127.0.0.1 by default (can be changed via env var or flag). I rely on running the Cloud SQL proxy at the same location as the script to make things consistent. If you're running a local database, of course it will also work fine on that db.\n\n**NOTE** that by default this drops the tables before re-creating them. Don't run this against a database with existing data unless you're okay with said data going away.\n\nCan run *-h* for full usage/options.\n\nDockerfile and deployment yaml files also handy to run this in a container if you want to scale it up with Kubernetes.\n\nBlog posts breaking things down:\n\nScript: https://medium.com/@GabeWeiss/creating-sample-data-for-mysql-databases-38e3eff4a91b\n\nContainerization basics: https://medium.com/@GabeWeiss/breaking-down-containers-9b0eb94cc0cd (not quite live yet, soon)\n\nScaling app with Kubernetes and connecting to Cloud SQL using sidecar pattern: https://medium.com/@GabeWeiss/connecting-cloud-sql-kubernetes-sidecar-46e016e07bb4 (also not quite live yet, soon)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabeweiss%2Fsql_data_randomizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabeweiss%2Fsql_data_randomizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabeweiss%2Fsql_data_randomizer/lists"}