Outputs the tree to a SQLite database
This is the code documentation for the Pelzini project
  Search documentation | 
class SqliteOutputterOutputs the tree to a SQLite database 
 AuthorsVariables
 Functions
 public __constructvoid $SqliteOutputter->__construct (  mixed $filename  ); Connects to the db public __destructvoid $SqliteOutputter->__destruct (  ); Closes connection to the db protected affected_rowsunknown $SqliteOutputter->affected_rows (  mixed $res  ); Returns the number of rows affected in the last query SQLite has no affected rows system. Assume if there is a result, that rows were affected. public check_layoutvoid $SqliteOutputter->check_layout (  string $layout_filename  ); Updates the database layout to match the layout file NOTE: currently only supports column and table adding and updating, not removal. protected commit_transactionvoid $SqliteOutputter->commit_transaction (  ); The database engine should commit a transaction. If transactions are not supported, it should do nothing. protected connectunknown $SqliteOutputter->connect (  ); Connects to the MySQL database protected create_tablevoid $SqliteOutputter->create_table (  mixed $table_name ,  mixed $dest_table  ); Creates a table protected do_multiple_insertvoid $SqliteOutputter->do_multiple_insert (  mixed $table ,  mixed $data  ); SQLite doesn't support multiple insert, so run each insert as a separate query protected fetch_assocunknown $SqliteOutputter->fetch_assoc (  mixed $res  ); Fetches a row from the database (assoc) protected fetch_rowunknown $SqliteOutputter->fetch_row (  mixed $res  ); Fetches a row from the database (numerical) protected get_alter_column_queryunknown $SqliteOutputter->get_alter_column_query (  mixed $table ,  mixed $column_name ,  mixed $new_type ,  mixed $not_null  ); Gets the query that alters a column to match the new SQL definition protected get_column_detailsunknown $SqliteOutputter->get_column_details (  mixed $table_name  ); 
Should return a multi-dimentional array of the column details
Format:
Array [
  [0] => Array [
     'Field' => field name
     'Type' => field type, (e.g. 'serial', 'smallnum' or 'identifier')
     'NotNull' => nullable?, (true or false)
     'Key' => indexed?, ('PRI' for primary key)
     ]
   [1] => ...
   [n] => ...protected get_index_detailsunknown $SqliteOutputter->get_index_details (  mixed $table_name  ); 
Should return a multi-dimentional array of the index details
Format:
Array [
  [0] => Array [
     'Fields' => array of field names
     ]
  [1] => ...
  [n] => ...protected get_sql_typestring $SqliteOutputter->get_sql_type (  string $internal_type_name  ); Converts an internal type into the database-specific SQL type. The defined internal types are: - serial: a number that automatically increments whenever a record is added - smallnum: a small number. needs to be able to hold at least 32,767 possible values (e.g. a 16-bit signed integer) - largenum: a large number. needs to be the same size or larger than a serial type - string: a character field long enough to hold identifiers of objects (e.g. function names) - text: a field that can hold arbitary pieces of text larger than 65536 chars in length. protected get_table_listunknown $SqliteOutputter->get_table_list (  ); Returns an array of the tables in this database protected insert_idunknown $SqliteOutputter->insert_id (  ); Returns the autogenerated id created in the last query protected queryunknown $SqliteOutputter->query (  mixed $query  ); Executes a MySQL query protected rollback_transactionvoid $SqliteOutputter->rollback_transaction (  ); The database engine should rollback a transaction. If transactions are not supported, it should do nothing. protected sql_safenunknown $SqliteOutputter->sql_safen (  string $input  ); Safens some input protected start_transactionvoid $SqliteOutputter->start_transaction (  ); The database engine should start a transaction. If transactions are not supported, it should do nothing.  | 
| Powered by Pelzini, version 0.9.0 | 
      Documentation is made available under the
GNU Free Documentation License 1.2.       Generated: Thursday, 15th March, 2018 at 02:05 pm  | 
    
      
         |