F a s d a b
Fast and simple database abstraction
serial

string serial(void)

This method is used in "CREATE TABLE" queries. For MySQL, it returns the string "INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY". For PostgreSQL, it returns the string "SERIAL". Using this method when creating a table will cause the following:
<?php
require_once("fasdab.mysql.php");

$db = new Fasdab("localhost""username""password""database");

$db->query("CREATE TABLE users (
    id "
.$db->serial().",
    first_name varchar(255),
    last_name varchar(255),
    age integer
)"
);
?>