catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.84k stars 1.15k forks source link

error on demo with sqlite: no such table: account #265

Closed joernroeder closed 7 years ago

joernroeder commented 9 years ago

Hey, i've tried to run the demo with a fresh sqlitedb but got the "no such table: account" error and didn't found a create(Table) method in the docs. How can i create my tables? thanks in advance!

orzass commented 9 years ago

use medoo->query(create........);

catfan commented 9 years ago

You have to create the database by yourself.

Medoo don't provide create method because it only run a time for most case, and for most of time, using some database management tool like MySQL Administrator, to generate the create table query and then use the $database->query() or exec() will be the better choice.

joernroeder commented 9 years ago

thanks for the infos guys! I'd recommend to clarify the docs in this case to prevent further noob issues.