{"repo":"schultek/stormberry","free":true,"listed":false,"github":"https://github.com/schultek/stormberry","clone":"git clone https://github.com/schultek/stormberry.git","description":"Access your postgres database effortlessly from dart code.","language":"Dart","stars":98,"topics":["dart","hacktoberfest","orm","postgres","sql"],"license":"MIT","category":"databases-storage","readme_excerpt":"Stormberry A strongly-typed postgres ORM to provide easy bindings between your dart classes and postgres database. It supports all kinds of relations without any complex configuration . --- Quick Start To get started, add stormberry as a dependency and build runner as a dev dependency: In your code, specify an abstract class that should act as a table like this: In order to generate the database code, run the following command: Tip : You'll need to re-run code generation each time you are making changes to your models. During development, you can use watch to automatically watch your changes: dart pub run build runner watch . This will generate a .schema.dart file that you should add as a part to the original model file. --- Before running your application, you have to migrate your database. To do this run: This will ask you for the connection details of your postgres database and then migrate the database schema by adding the users table. --- To access your database from your application, create a Database instance and use the users repository like this: Full Documentation See the full documentation here or jump directly to the topic you are looking for: - Models - Views - Database - Repositories - Queries & Actions - Migration","default_branch":null,"files":null,"tree":[],"storefront":"/r/schultek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/schultek/stormberry/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."}