Pike v8.0 release 1738

Method Mysql.SqlTable()->create()


Method create

Mysql.SqlTable Mysql.SqlTable(function(void:Sql.Sql) get_db, string table, void|string prop_col)

Description

Creates an SqlTable object for accessing (primarily) a specific table.

Parameter get_db

A function that will be called to get a connection to the database containing the table.

Parameter table

The name of the table.

Parameter prop_col

The column in which all fields which don't have explicit columns are stored. It has to be a non-null blob or varbinary column. If this isn't specified and there is such a column called "properties" then it is used for this purpose. Set to "-" to force this feature to be disabled.