sqlparser

package
v0.43.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 5 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL