{"repo":"Crecto/crecto","free":true,"listed":false,"github":"https://github.com/Crecto/crecto","clone":"git clone https://github.com/Crecto/crecto.git","description":"Database wrapper and ORM for Crystal, inspired by Ecto","language":"Crystal","stars":352,"topics":["crystal","postgres","database-wrapper","mysql","ecto","database","orm","orm-framework"],"license":"MIT","category":"databases-storage","readme_excerpt":"Crecto https://www.crecto.dev/ Robust database wrapper for Crystal. Inspired by Ecto for Elixir language. With built in query composer, associations, transactions, validations, constraints, and more. Website with guides and examples - https://www.crecto.dev/ Example Usage and Guides New website and API docs coming soon! Benchmarks - VS raw crystal-pg Development Testing Specs are located in the spec directory. Since this is an ORM, running specs requires a database connection. Quick Start (SQLite) The project comes pre-configured with SQLite support. Simply run: This will create a local SQLite database ( ./crecto test.db ) and run all 400+ tests. Testing with Other Databases To test with PostgreSQL or MySQL: 1. Copy the example configuration: 2. Edit spec/repo.cr to uncomment and configure your preferred database: 3. Run the tests: Testing with Docker To test all three supported database types using Docker: This will start PostgreSQL and MySQL containers and run the test suite against all database adapters. Performance Testing The test suite includes comprehensive performance and load tests that can be resource-intensive. By default, these tests are skipped to keep regular test runs fast. To run performance tests: Performance tests include: - CRUD operations under high load - Association performance testing - Database benchmarking - Stress testing with concurrent operations Note: Performance tests may take several minutes to complete and require significant system resources. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Crecto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Crecto/crecto/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}