Documentation
¶
Overview ¶
Package sqlparser contains SQL parsing functionality for SQLite.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTableIdentFromCreateTableStmt ¶
func ExtractTableIdentFromCreateTableStmt(stmt string, unescape bool) (schema, table string, err error)
ExtractTableIdentFromCreateTableStmt extracts table name (and the table's schema if specified) from a CREATE TABLE statement. If err is nil, table is guaranteed to be non-empty. If arg unescape is true, any surrounding quotation chars are trimmed from the returned values.
CREATE TABLE "sakila"."actor" ( actor_id INTEGER NOT NULL) --> sakila, actor, nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.