{"id":20508692,"url":"https://github.com/sqlitebrowser/sqlitedatagen","last_synced_at":"2025-04-13T22:09:00.014Z","repository":{"id":82720606,"uuid":"100600357","full_name":"sqlitebrowser/sqlitedatagen","owner":"sqlitebrowser","description":"Super simple (~180 lines) Go util to generate SQLite data files filled with test data","archived":false,"fork":false,"pushed_at":"2019-03-14T11:01:26.000Z","size":12,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-04-13T22:08:55.708Z","etag":null,"topics":["sqlite3"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sqlitebrowser.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-17T12:20:12.000Z","updated_at":"2022-04-02T20:30:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"114983ea-b5f0-4766-b273-67070f51fa01","html_url":"https://github.com/sqlitebrowser/sqlitedatagen","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/sqlitebrowser%2Fsqlitedatagen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitebrowser%2Fsqlitedatagen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitebrowser%2Fsqlitedatagen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlitebrowser%2Fsqlitedatagen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sqlitebrowser","download_url":"https://codeload.github.com/sqlitebrowser/sqlitedatagen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788939,"owners_count":21161727,"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":["sqlite3"],"created_at":"2024-11-15T20:19:49.473Z","updated_at":"2025-04-13T22:09:00.006Z","avatar_url":"https://github.com/sqlitebrowser.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SQLite Data Generator\n\nThis is just a super simple utility for creating SQLite databases\nfilled with random data.  It's not even a CLI, it just has three\nvariables at the top to change, then compile/run it:\n\n  * output directory for the SQLite file\n  * output filename for the SQLite file\n  * number of data rows in each table\n\neg:\n\n```\noutputDir = \"Databases\"\nfileName = \"72mb.sqlite\"\nnumRows = 100000\n```\n\nA row count of 100000 makes a 72MB file (taking ~4.5 seconds) on my\n(old) Linux desktop.\n\nAdjust the variables to suit your desired target file name and\nsize, then run it:\n\n```\n$ go run main.go\n2017/08/21 20:01:39 A SQLite database appears to be there already... removing it\n2017/08/21 20:01:39 Creating new SQLite database file '/home/jc/Databases/72mb.sqlite'\n2017/08/21 20:01:39 Creating tables\n2017/08/21 20:01:39 # of cpu's detected: 4.  Launching 4 data generation workers\n2017/08/21 20:01:39 Adding data\n2017/08/21 20:01:44 SQLite database generation completed\n```\n\n\n### Why?\n\nI needed something to generate SQLite files of a specific size,\nwhile tracking down a bug which looks related to the size of\nfiles being transferred.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlitebrowser%2Fsqlitedatagen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqlitebrowser%2Fsqlitedatagen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlitebrowser%2Fsqlitedatagen/lists"}