{"id":19450499,"url":"https://github.com/quiltservertools/ledger-databases","last_synced_at":"2025-04-25T03:32:05.733Z","repository":{"id":37867749,"uuid":"406906700","full_name":"QuiltServerTools/Ledger-Databases","owner":"QuiltServerTools","description":"Adds support for MySQL and H2 databases to Ledger","archived":false,"fork":false,"pushed_at":"2024-06-27T20:38:30.000Z","size":105,"stargazers_count":8,"open_issues_count":6,"forks_count":9,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-03T15:43:48.130Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuiltServerTools.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":"2021-09-15T19:52:17.000Z","updated_at":"2024-12-15T00:22:24.000Z","dependencies_parsed_at":"2024-04-24T01:31:52.918Z","dependency_job_id":"4bb517fa-5b8c-47a2-b8b9-e090dd4a8585","html_url":"https://github.com/QuiltServerTools/Ledger-Databases","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuiltServerTools%2FLedger-Databases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuiltServerTools%2FLedger-Databases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuiltServerTools%2FLedger-Databases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuiltServerTools%2FLedger-Databases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuiltServerTools","download_url":"https://codeload.github.com/QuiltServerTools/Ledger-Databases/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250748085,"owners_count":21480778,"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-11-10T16:38:02.980Z","updated_at":"2025-04-25T03:32:05.433Z","avatar_url":"https://github.com/QuiltServerTools.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ledger Databases\n\nAdds support for MySQL, MariaDB, H2, and PostgreSQL databases in Ledger\n\n## Use\n\n## Common\n\nFor both MySQL, MariaDB, H2, and PostgreSQL, you will need to place Ledger Databases in your mods folder along with Ledger 1.1.0 or newer\n\n## H2\n\nAdd the following to the bottom of your Ledger config file:\n\n```toml\n[database_extensions]\ndatabase = \"H2\"\n```\n\n## MySQL\n\nAdd the following to the bottom of your Ledger config file:\n\n```toml\n[database_extensions]\ndatabase = \"MYSQL\"\nurl = \"\"\nusername = \"\"\npassword = \"\"\nproperties = []\nmaxPoolSize = 10\nconnectionTimeout = 60000\n```\n\n`url`: Must be URL of database with `/\u003cdatabase_name\u003e` appended. An example URL would be `localhost/ledger`. You can optionally add port information such as `localhost:3000/ledger`\n\n## MariaDB\n\nAdd the following to the bottom of your Ledger config file:\n\n```toml\n[database_extensions]\ndatabase = \"MARIADB\"\nurl = \"\"\nusername = \"\"\npassword = \"\"\nproperties = []\nmaxPoolSize = 10\nconnectionTimeout = 60000\n```\n\n`url`: Must be URL of database with `/\u003cdatabase_name\u003e` appended. An example URL would be `localhost/ledger`. You can optionally add port information such as `localhost:3000/ledger`\n\n## PostgreSQL\n\n```toml\n[database_extensions]\ndatabase = \"POSTGRESQL\"\nurl = \"\"\nusername = \"\"\npassword = \"\"\nproperties = []\nmaxPoolSize = 10\nconnectionTimeout = 60000\n```\n\n## SQLite\n\n```toml\n[database_extensions]\ndatabase = \"SQLITE\"\n```\n\n## Connector properties\n\nFor some databases, such as MySQL, you can provide properties to the database connector. For each property, add a string entry to the `properties` array.\n\n```toml\nproperties = [\"useJDBCCompliantTimezoneShift=true\", \"useLegacyDatetimeCode=false\", \"serverTimezone=UTC\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquiltservertools%2Fledger-databases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquiltservertools%2Fledger-databases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquiltservertools%2Fledger-databases/lists"}