PHP Classes

File: test/js/out2.txt

Recommend this page to a friend!
  Classes of Nikos M.   Dialect PHP SQL Query Builder   test/js/out2.txt   Download  
File: test/js/out2.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Dialect PHP SQL Query Builder
Build SQL queries from templates
Author: By
Last change: v.1.4.0 contd

* support default values in sql_function, sql_type
* more standard and versatile sql types supported
* add JSON sql type
Date: 1 year ago
Size: 680 bytes
 

Contents

Class file image Download
Dialect.VERSION = 1.4.0 CREATE TABLE IF NOT EXISTS `new_table` ( id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL DEFAULT '', categoryid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, companyid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, fields TEXT NOT NULL DEFAULT '', start DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', end DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', status TINYINT(8) UNSIGNED NOT NULL DEFAULT 0, extra TEXT NOT NULL DEFAULT '', KEY categoryid (categoryid), KEY companyid (companyid), CONSTRAINT constraint_name UNIQUE KEY id (id) ) COLLATE=utf8_general_ci CREATE VIEW `new_view` ( id, name ) AS SELECT id, name FROM another_table