struct

Triki::Mysql

Inherits Triki::ConfigScaffoldGenerator / Triki::InsertStatementParser / Triki::Base / Struct / Value / Object

MySQL dump parser and writer.

Handles INSERT and INSERT IGNORE statements produced by mysqldump -c.

Instance methods

make_insert_statement(table_name : String, column_names : ColumnList, values : Array(Array(RowContent)), ignore = false) : String

Reassembles an INSERT/COPY statement from the given rows.

Source
make_valid_value_string(value : RowContent) : RowContent

Quotes or formats a single value for the target database dialect.

Source
rows_to_be_inserted(line : String) : Rows

Extracts rows of values from a single INSERT/COPY line.

Source
table_data(line)
Source