tags:

views:

46

answers:

3

Is there a way to generate SQLite3 database by writing PHP with no SQL?

Somewhat like django's models.

A: 

No, to create a database, you're going to need to use SQL at some point unless you're using a Database Manager. If you're using PHP, you can use the built in libraries for accessing databases, found here: http://php.net/manual/en/book.sqlite.php

Sushisource
A: 

You can create database using PHP built in libraries. Provided your hosting server allows.....

+2  A: 

If you don't want to write SQL, a possibility is to use an abstraction layer, like the Doctrine ORM.

It will allow to manipulate objects, on the PHP side -- and will deal with the database-related stuff (including compatibility between several types of SQL databases).

Pascal MARTIN