{"id":22871372,"url":"https://github.com/stainless-steel/sql","last_synced_at":"2025-08-22T07:35:42.082Z","repository":{"id":35797880,"uuid":"40079327","full_name":"stainless-steel/sql","owner":"stainless-steel","description":"Constructor of SQL statements","archived":false,"fork":false,"pushed_at":"2018-03-08T18:31:12.000Z","size":54,"stargazers_count":21,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-15T12:09:55.629Z","etag":null,"topics":["database","sql"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stainless-steel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-02T12:56:47.000Z","updated_at":"2024-08-07T09:10:11.000Z","dependencies_parsed_at":"2022-09-07T14:42:13.566Z","dependency_job_id":null,"html_url":"https://github.com/stainless-steel/sql","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/stainless-steel%2Fsql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stainless-steel%2Fsql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stainless-steel%2Fsql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stainless-steel%2Fsql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stainless-steel","download_url":"https://codeload.github.com/stainless-steel/sql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584579,"owners_count":21771986,"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":["database","sql"],"created_at":"2024-12-13T13:18:38.426Z","updated_at":"2025-05-05T22:21:44.549Z","avatar_url":"https://github.com/stainless-steel.png","language":"Rust","readme":"# SQLite [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url] [![Build][build-img]][build-url]\n\nThe package provides a constructor of SQL statements.\n\n## Example\n\n```rust\nuse sql::prelude::*;\n\n// CREATE TABLE `users` (`id` INTEGER NOT NULL, `name` TEXT, `photo` BLOB)\nprintln!(\"{}\", create_table(\"users\").column(\"id\".integer().not_null())\n                                    .column(\"name\".string())\n                                    .column(\"photo\".binary())\n                                    .compile().unwrap());\n\n// DELETE FROM `users`\nprintln!(\"{}\", delete_from(\"users\").compile().unwrap());\n\n// INSERT INTO `users` (`id`, `name`) VALUES (?, ?), (?, ?)\nprintln!(\"{}\", insert_into(\"users\").columns(\u0026[\"id\", \"name\"]).batch(2)\n                                   .compile().unwrap());\n\n// SELECT * FROM `users` WHERE `name` LIKE 'A%'\nprintln!(\"{}\", select_from(\"users\").so_that(column(\"name\").like(\"A%\"))\n                                   .compile().unwrap());\n\n// SELECT * FROM `users` ORDER BY `name` DESC\nprintln!(\"{}\", select_from(\"users\").order_by(column(\"name\").descend())\n                                   .compile().unwrap());\n\n// SELECT `name`, `photo` FROM `users` LIMIT 1\nprintln!(\"{}\", select_from(\"users\").columns(\u0026[\"name\", \"photo\"]).limit(1)\n                                   .compile().unwrap());\n```\n\n## Contribution\n\nYour contribution is highly appreciated. Do not hesitate to open an issue or a\npull request. Note that any contribution submitted for inclusion in the project\nwill be licensed according to the terms given in [LICENSE.md](LICENSE.md).\n\n[build-img]: https://travis-ci.org/stainless-steel/sql.svg?branch=master\n[build-url]: https://travis-ci.org/stainless-steel/sql\n[documentation-img]: https://docs.rs/sql/badge.svg\n[documentation-url]: https://docs.rs/sql\n[package-img]: https://img.shields.io/crates/v/sql.svg\n[package-url]: https://crates.io/crates/sql\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstainless-steel%2Fsql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstainless-steel%2Fsql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstainless-steel%2Fsql/lists"}