{"id":15024225,"url":"https://github.com/zekrom-vale/shinysqlbrowser","last_synced_at":"2026-01-05T00:11:15.205Z","repository":{"id":230479818,"uuid":"779497007","full_name":"zekrom-vale/ShinySQLBrowser","owner":"zekrom-vale","description":"Set up a interactable interface for data entry with one or may SQL databses.  Use an object for configuration or import one from YAML, JSON, or any other format.","archived":false,"fork":false,"pushed_at":"2024-04-10T00:48:34.000Z","size":224,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T08:30:49.172Z","etag":null,"topics":["bootstrap4","r","shiny-apps","sql","tidyverse"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zekrom-vale.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":"2024-03-30T01:23:13.000Z","updated_at":"2024-04-01T22:48:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"7996edc8-85c4-4d78-a7ed-b7e20527b151","html_url":"https://github.com/zekrom-vale/ShinySQLBrowser","commit_stats":null,"previous_names":["zekrom-vale/shinysqlbrowser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekrom-vale%2FShinySQLBrowser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekrom-vale%2FShinySQLBrowser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekrom-vale%2FShinySQLBrowser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zekrom-vale%2FShinySQLBrowser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zekrom-vale","download_url":"https://codeload.github.com/zekrom-vale/ShinySQLBrowser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244928606,"owners_count":20533596,"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":["bootstrap4","r","shiny-apps","sql","tidyverse"],"created_at":"2024-09-24T19:59:58.986Z","updated_at":"2026-01-05T00:11:15.167Z","avatar_url":"https://github.com/zekrom-vale.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShinySQLBrowser\nA Shiny application that allows easy SQL data entry for anyone once set up with the `configuration.yaml` file or any other object from R.\n\nThere are 4 steps in setting up the application with Shiny. Installing ShinySQLBrowser, `UIContainer`, `includeUITable`, and `observeSwitch` provide ease of access wrapers.\nIf needed you can sill call `UITable` directly, but for that you will need to read the R/man files.\n\n## Instalation\n\n```r\ndevtools::install_github(\"https://github.com/zekrom-vale/ShinySQLBrowser\")\nlibrary(ShinySQLBrowser)\n```\n\n## Table Generation `UIContainer(tables, opt = NULL)`\nThis function takes a list of tables and optionaly a configuration object for `format_default`s and advanced configuration such as HTML building.\nIt returns a container object containing the generated `UITables`.\n\n### Paramater 1: `tables`\n```yaml\n\u003cTableName\u003e:\n  tab:\n    title: \u003cTableName\u003e\n    [value: \u003cIdentifiyer, advnaced config\u003e]\n    [icon: \u003cIcon of the tab\u003e]\n  con: \u003cSQL connection\u003e\n  name: \u003cSQL table name\u003e\n  id: \u003cHTML ID of table\u003e\n  [types:\n    \u003cHTML input/select types\u003e[...]]\n  opt: \u003coption object\u003e\n  [rows:\n    \u003crow name\u003e:\n      [width: \u003ccss width not implemented\u003e]\n      input: \u003chtml input/select override\u003e\n    \u003crow name\u003e:\n      [width: \u003ccss width\u003e]\n      input:\n        [con: \u003cSQL connection\u003e]\n        table: \u003cSQL Table\u003e\n        key: \u003cSQL column to use as a key\u003e\n        val: \u003cSQL column to use as a value\u003e\n      [...]]\n    [js: \u003cJS lookup, abvanced config\u003e]\n    [tbl: \u003cfunction to modify the table\u003e]\n    keys: \u003cPrimary keys of the table\u003e\n  [...]\n```\nSee [`config.yaml:tables`](https://github.com/zekrom-vale/ShinySQLBrowser/blob/main/examples/sqlite/config.yaml) for an example of the table data\n\n### Paramater 2: Optional `opt`\n```yaml\n[format_default:\n    \u003ctype\u003e: \u003cJS function\u003e\n    [...]]\n```\nSee [`config.yaml:otp`](https://github.com/zekrom-vale/ShinySQLBrowser/blob/main/examples/sqlite/config.yaml) for an example of the simple options data.  For more advanced configuration that is default to generating the HTML, see [`default.yaml`](https://github.com/zekrom-vale/ShinySQLBrowser/blob/main/inst/default.yaml).\n\n\n## HTML Generation with  `includeUITable(container)`\n\nGenerates table containers HTML and dependencies.\nNote that the table HTML will be generated and desposed on the fly.\nInclude this in the `ui` list of Shiny.\n\n```r\ncontainer = UIContainer(tables, opt)\nui = bootstrapPage(\n    theme = bslib::bs_theme(version = 4),\n    includeUITable(container)\n)\nshinyApp(ui = ui)\n```\n\n## Server triggering on switch with: `observeSwitch(session, input, container)`\nThis function observes the switching of tabs and geerates or desposes the table\n\n```r\ncontainer = UIContainer(tables, opt)\nserver = function(input, output, session) {\n  observeSwitch(session, input, container)\n  onSessionEnded(function(){\n    # Recomeended to close your pools on close\n    poolClose(pool)\n  })\n}\nshinyApp(server = server)\n```\n\n## Example\nSee [/examples](https://github.com/zekrom-vale/ShinySQLBrowser/tree/main/examples) for more examples.\nI will eventualy publish a sanitized version of the logs data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekrom-vale%2Fshinysqlbrowser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzekrom-vale%2Fshinysqlbrowser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzekrom-vale%2Fshinysqlbrowser/lists"}