ecto_ensure_migrations v0.1.0 EctoEnsureMigrations.StatementSplitter
Link to this section Summary
Functions
Splits a string that contains multiple statements into a list of strings that only contain one statement each.
Link to this section Functions
Link to this function
split_statements(input, stm_acc \\ "", res_acc \\ [], stacks \\ %__MODULE__.Stacks{})
split_statements( input :: binary(), stm_acc :: binary(), res_acc :: [binary()], stacks :: EctoEnsureMigrations.StatementSplitter.Stacks.t() ) :: [binary()]
Splits a string that contains multiple statements into a list of strings that only contain one statement each.
Examples
iex> EctoEnsureMigrations.StatementSplitter.split_statements("A; B") ["A;", "B"]