{"id":19152363,"url":"https://github.com/svelterust/axum-sqlite","last_synced_at":"2025-07-10T18:40:08.328Z","repository":{"id":57130269,"uuid":"478769488","full_name":"svelterust/axum-sqlite","owner":"svelterust","description":"Provides Sqlite database for axum","archived":false,"fork":false,"pushed_at":"2023-07-15T05:47:02.000Z","size":8,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T16:17:32.967Z","etag":null,"topics":["axum","rust","sqlite"],"latest_commit_sha":null,"homepage":"https://docs.rs/axum-sqlite/latest/axum_sqlite/","language":"Rust","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/svelterust.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":"2022-04-07T00:21:51.000Z","updated_at":"2024-12-23T16:00:56.000Z","dependencies_parsed_at":"2024-12-01T10:49:51.008Z","dependency_job_id":null,"html_url":"https://github.com/svelterust/axum-sqlite","commit_stats":null,"previous_names":["knarkzel/axum-sqlite"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Faxum-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Faxum-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Faxum-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelterust%2Faxum-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svelterust","download_url":"https://codeload.github.com/svelterust/axum-sqlite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236361,"owners_count":19769580,"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":["axum","rust","sqlite"],"created_at":"2024-11-09T08:17:34.373Z","updated_at":"2025-02-22T21:15:00.697Z","avatar_url":"https://github.com/svelterust.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# axum-sqlite\n\n```bash\ncargo add axum-sqlite\n```\n\nProvides Sqlite database for `axum`.\n\n```rust\nuse axum::{Extension, response::Html, routing::get, Router};\nuse std::net::SocketAddr;\nuse axum_sqlite::*;\n \n#[tokio::main]\nasync fn main() {\n    let app = Router::new()\n        .route(\"/\", get(index))\n        .layer(Database::new(\":memory:\").unwrap());\n    axum::Server::bind(\u0026SocketAddr::from(([127, 0, 0, 1], 3000)))\n        .serve(app.into_make_service())\n        .await\n        .unwrap();\n}\n \nasync fn index(Extension(database): Extension\u003cDatabase\u003e) -\u003e Html\u003c\u0026'static str\u003e {\n    let connection = database.connection().unwrap(); // Do stuff with connection\n    Html(\"Hello, sqlite!\")\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvelterust%2Faxum-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvelterust%2Faxum-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvelterust%2Faxum-sqlite/lists"}