Closed zynfly closed 2 years ago
No, the query builder or model doesn't have any DDL-related methods. And also any migrations for now.
Database tables for tests are generated with PHP script here by help with Laravel's Schema builder.
I'm personally creating tables with phpmyadmin or with Laravel schema builder for my personal usage, but would be amazing to have also schema builder in TinyOrm.
Can I use TinyOrm to execute my own table creation statement?
TinyOrm looks like a great library. I tried it for the first time today. Now I don't know how to use it to create tables.
Yes, you can use DB::statement()
or DB::unprepared()
, also described in docs.
Thanks! The table has been created.
I have added Schema builder
for MySQL db, only one thing that is not implemented is updating database columns. 😁😎 @zynfly
I'll try it now. It looks very cool.
This is really great. It has become more and more perfect.
can generate table creation statements or generate new data tables directly from the model