{"id":16445200,"url":"https://github.com/dgapitts/vagrant-sqlalchemy","last_synced_at":"2025-10-12T01:15:18.943Z","repository":{"id":145829570,"uuid":"369641279","full_name":"dgapitts/vagrant-sqlalchemy","owner":"dgapitts","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-25T20:53:10.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-08T22:38:48.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgapitts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-05-21T19:58:01.000Z","updated_at":"2021-07-25T20:53:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"495a0d8a-f7d6-4515-9940-074a91fa4616","html_url":"https://github.com/dgapitts/vagrant-sqlalchemy","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/dgapitts%2Fvagrant-sqlalchemy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgapitts%2Fvagrant-sqlalchemy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgapitts%2Fvagrant-sqlalchemy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgapitts%2Fvagrant-sqlalchemy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgapitts","download_url":"https://codeload.github.com/dgapitts/vagrant-sqlalchemy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240816690,"owners_count":19862342,"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-11T09:43:38.611Z","updated_at":"2025-10-12T01:15:13.918Z","avatar_url":"https://github.com/dgapitts.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vagrant-sqlalchemy\n\n## Intro\n\nThis project is to explore and demo the python sqlalchemy ORM \n\nSQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL. It provides a full suite of well known enterprise-level persistence patterns, designed for efficient and high-performing database access, adapted into a simple and Pythonic domain language...\nSQLAlchemy is most famous for its object-relational mapper (ORM), an optional component that provides the data mapper pattern, where classes can be mapped to the database in open ended, multiple ways - allowing the object model and database schema to develop in a cleanly decoupled way from the beginning.\nhttps://www.sqlalchemy.org/\n\nI'm going working with a few DB engines:  postgres, sqlite, cockroachdb and mysql.\n\n \n\n\n## General data generation and first steps with sqlite3 (initially without sqlalchemy)\n\nWhile the schema will be generated by sqlalchemy, I'm hoping to allign with pg_bench for easy/simple data generation - see [docs/data-setup.md](docs/data-setup.md) \n\n\n## Starting sqlalchemy ORM \n\nAs per [docs/intro-sqlalchemy.md](docs/intro-sqlalchemy.md):\n* I do sfollow some first steps woth sqlalchemy ORM\n* This hello customer-table world style example uses sqlite3 \n\nAs per [docs/intro-sqlalchemy-python.md](docs/intro-sqlalchemy-python.md)\n* I can also use the ORM in the same manner in postgres\n\n\n## Background vagrant issues and tweaks\n\n### Vagrant scp\n\n* As per [docs/vagrant-scp.md](docs/vagrant-scp.md) I've made some notes on setting up scp with vagrant, as the initial datasets are created in pgbench/postgres, then dumped to flat files and tweaked for the other db engines. \n* These tweaks will be largely scripted plus a few final quick manual edits.\n* I'm planning to use vagrant-scp to save these datasets i.e. back to the project.\n\n### Vagrant mount failures and my workaround - vagrant reload \u0026\u0026 sudo /vagrant/post-provision.sh\n\n* I'm not sure why recently I'm hitting /vagrant mount issues around initial provisioning? \n* However it appears that I'm alone and I have made some notes regarding workarounds [docs/vagrant-mount-issues.md](docs/vagrant-mount-issues.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgapitts%2Fvagrant-sqlalchemy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgapitts%2Fvagrant-sqlalchemy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgapitts%2Fvagrant-sqlalchemy/lists"}