{"id":25614605,"url":"https://github.com/donkirkby/active-sandbox","last_synced_at":"2026-04-20T19:07:06.257Z","repository":{"id":278464010,"uuid":"935602131","full_name":"donkirkby/active-sandbox","owner":"donkirkby","description":"Sandbox project for ActiveRecord database access","archived":false,"fork":false,"pushed_at":"2025-02-21T20:44:57.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T08:36:43.462Z","etag":null,"topics":["activerecord","oracle","ruby","sandbox"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/donkirkby.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":"2025-02-19T17:57:48.000Z","updated_at":"2025-02-21T20:45:01.000Z","dependencies_parsed_at":"2025-02-21T21:37:02.248Z","dependency_job_id":"637e11ea-764d-4d3f-bd52-b773018b7eb7","html_url":"https://github.com/donkirkby/active-sandbox","commit_stats":null,"previous_names":["donkirkby/active-record-oracle-ids-bug","donkirkby/active-sandbox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/donkirkby/active-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Factive-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Factive-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Factive-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Factive-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donkirkby","download_url":"https://codeload.github.com/donkirkby/active-sandbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donkirkby%2Factive-sandbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32061288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["activerecord","oracle","ruby","sandbox"],"created_at":"2025-02-22T02:34:09.327Z","updated_at":"2026-04-20T19:07:06.241Z","avatar_url":"https://github.com/donkirkby.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Active Sandbox\nThis is a sandbox project for [ActiveRecord] database access. It launches a\n[devcontainer], plus an Oracle database container. You can then run Ruby scripts\nthat use ActiveRecord to access the database. It's a minimal environment for\nexperimenting with ActiveRecord, or writing a [minimal, reproducible example] of\na problem you want to ask about.\n\nTo use it, you can either run it on the GitHub website, or on your computer.\nRunning on the GitHub website is easier, because you don't need to install\nanything. As long as you already have a GitHub account, you can follow the\ndefault steps to [create a codespace]. It takes a few minutes to set up, but\nbe patient. It takes time to set up the database and install the Ruby gems.\n\nIt's a bit faster to install and run on your computer. I've tested it with\n[VSCode], which basically requires Docker and the devcontainer extension. Other\neditors also support devcontainers, but I haven't tested them.\n\nOnce you have it running, you can try out a ruby script:\n\n    root@f273b351342b:/opt/project# ruby example.rb\n    Hello, World!\n    Found 0 professors.\n    Created professor Doc Brown with id 1.\n    root@f273b351342b:/opt/project#\n\nIf it can't find Ruby, try exiting the shell and opening a new one.\n\nOnce that works, you can experiment with ActiveRecord and the database. The\ndatabase tables are created by scripts in the `initdb.d` folder, and\n*each script* must connect as the DEV user, otherwise the tables are created\nas the SYS user.\n\nIf you want to browse the database, follow these steps:\n\n1. Click on the SQL Developer icon, and the Create Connection button.\n2. Type a connection name, such as \"freedb1\".\n3. Type username \"dev\" and password \"dev\".\n4. Check the Save Password checkbox.\n5. Change the connection type to TNS.\n6. Click the Test button. If that passes, click the Connect button.\n\nIf you want to add other Ruby gems, add them to the `Gemfile`, then rebuild the\ncontainer. If you want to play with ActiveRecord and the Sinatra web server\ntogether, try my [Active Sinatra] project.\n\n[ActiveRecord]: https://guides.rubyonrails.org/v7.1/active_record_basics.html\n[devcontainer]: https://containers.dev/\n[minimal, reproducible example]: https://stackoverflow.com/help/minimal-reproducible-example\n[VSCode]: https://code.visualstudio.com/docs/devcontainers/containers\n[create a codespace]: https://docs.github.com/en/codespaces/developing-in-a-codespace/creating-a-codespace-for-a-repository\n[Active Sinatra]: https://github.com/donkirkby/active_sinatra\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkirkby%2Factive-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonkirkby%2Factive-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonkirkby%2Factive-sandbox/lists"}