andela-iadeniyi/Potato-ORM

View on GitHub
src/Interface/SchemaInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Defining Interface for class SchemaInterface.
 *
 * @package Ibonly\PotatoORM\DatabaseQueryInterface
 * @author  Ibraheem ADENIYI <ibonly01@gmail.com>
 * @license MIT <https://opensource.org/licenses/MIT>
 */

namespace Ibonly\PotatoORM;

interface SchemaInterface
{
    public function createTable($tablename);

    public function increments($value);

    public function strings($value, $length);

    public function text($value);

    public function integer($value, $length);

    public function foreignKey($value, $length);

    public function dateTime($value, $length);

    public function buildQuery($tablename);

    public function sanitizeQuery($query);
}