Classe per gestire il parser dei file sql (Code freely adapted from phpBB Group)
More...
|
static | remove_comments (&$output) |
| Strip the sql comment lines out of an uploaded sql file specifically for mssql and postgres type files in the install. More...
|
|
static | remove_remarks ($sql) |
| Strip the sql comment lines out of an uploaded sql file. More...
|
|
static | split_sql_file ($sql, $delimiter) |
| Split an uploaded sql file into single sql statements. More...
|
|
static | getQueries ($options=array()) |
| Elenco delle singole query presenti in un file sql. More...
|
|
Classe per gestire il parser dei file sql (Code freely adapted from phpBB Group)
- Copyright
- 2015 Otto srl (http://www.opensource.org/licenses/mit-license.php) The MIT License
- Author
- marco guidotti guido.nosp@m.ttim.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
-
abidibo abidi.nosp@m.bo@g.nosp@m.mail..nosp@m.com
static getQueries |
( |
|
$options = array() | ) |
|
|
static |
Elenco delle singole query presenti in un file sql.
- Parameters
-
string | $options | array associativo di opzioni
- file_schema (string): percorso al file sql
- content_schema (string): contenuto del file sql
|
- Returns
- array (query)
static remove_comments |
( |
& |
$output | ) |
|
|
static |
Strip the sql comment lines out of an uploaded sql file specifically for mssql and postgres type files in the install.
- Parameters
-
- Returns
- string
static remove_remarks |
( |
|
$sql | ) |
|
|
static |
Strip the sql comment lines out of an uploaded sql file.
- Parameters
-
- Returns
- array
static split_sql_file |
( |
|
$sql, |
|
|
|
$delimiter |
|
) |
| |
|
static |
Split an uploaded sql file into single sql statements.
Note: expects trim() to have already been run on $sql.
- Parameters
-
string | $sql | file contents |
string | $delimiter | delimiter |
- Returns
- array
The documentation for this class was generated from the following file: