parse_file_as_batch


Description:

public Batch? parse_file_as_batch (string filename) throws Error

Parse filename's contents and creates a Batch object which contains all the Statement objects created while parsing (one object per SQL statement).

filename's contents are parsed and Statement objects are created as long as no error is found. If an error is found at some point, then the parsing stops, throws may be set and null is returned

if sql is null, then the returned Batch object will contain no statement.

Parameters:

this

a SqlParser object

filename

name of the file to parse

Returns:

a new Batch object, or null if an error occurred




2022 vala-language.org