struct

Triki::SqlServer

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

SQL Server dump parser and writer.

Handles INSERT INTO [dbo].[table] ... VALUES statements.

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) : Array(Array(String | Nil))

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

Source
table_data(line)
Source