{"id":15349967,"url":"https://github.com/thomasmueller/franklin-fragment-converter","last_synced_at":"2025-04-04T05:25:26.728Z","repository":{"id":64379331,"uuid":"574915291","full_name":"thomasmueller/franklin-fragment-converter","owner":"thomasmueller","description":"A converter for content fragments to SQL","archived":false,"fork":false,"pushed_at":"2022-12-12T07:32:46.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T16:43:48.546Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/thomasmueller.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}},"created_at":"2022-12-06T11:01:55.000Z","updated_at":"2022-12-07T10:57:02.000Z","dependencies_parsed_at":"2023-01-15T14:30:54.807Z","dependency_job_id":null,"html_url":"https://github.com/thomasmueller/franklin-fragment-converter","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/thomasmueller%2Ffranklin-fragment-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasmueller%2Ffranklin-fragment-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasmueller%2Ffranklin-fragment-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasmueller%2Ffranklin-fragment-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasmueller","download_url":"https://codeload.github.com/thomasmueller/franklin-fragment-converter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247125731,"owners_count":20887768,"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-01T11:56:34.908Z","updated_at":"2025-04-04T05:25:26.709Z","avatar_url":"https://github.com/thomasmueller.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# franklin-fragment-converter\n\nA converter for content fragments stored in Apache Jackrabbit Oak to a relational database.\n\nCurrently supported databases are PostgreSQL and SQLite, or, for testing purposes, creation of a SQL script.\n\n## Build\n\n    mvn clean install\n\n## Running\n\nThe following will convert the fragments defines in the file `fragments.json`\nand store the SQL statements in the file `sql.txt` (at most 1000 lines):\n\n    java -cp \"target/*:target/lib/*\" \\\n      com.adobe.franklin.fragments.converter.ConvertFragmentsToSQL \\\n      --fileName fragments.json \\\n      --maxRows 1000 \\\n      \u003e sql.txt\n\nTo directly run all statements against a SQL database:\n\n    java -cp \"target/*:target/lib/*\" \\\n      com.adobe.franklin.fragments.converter.ConvertFragmentsToSQL \\\n      --fileName fragments.json \\\n      --jdbcUrl jdbc:postgresql:test \\\n      --jdbcUser test\n\nTo extract from a local segment store and populate a database:\n\n    java -cp \"target/*:target/lib/*\" \\         \n      com.adobe.franklin.fragments.converter.ConvertFragmentsToSQL \\\n      --oakRepo crx-quickstart/repository \\\n      --jdbcUrl jdbc:postgresql:test \\\n      --jdbcUser test\n      \nTo populate a SQLite database:\n\n    java -cp \"target/*:target/lib/*\" \\\n      com.adobe.franklin.fragments.converter.ConvertFragmentsToSQL \\\n      --oakRepo crx-quickstart/repository \\\n      --jdbcUrl jdbc:sqlite:test.sqlite \\\n      --jdbcUser test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasmueller%2Ffranklin-fragment-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasmueller%2Ffranklin-fragment-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasmueller%2Ffranklin-fragment-converter/lists"}