On this page
  1. sqlite3.complete_statement
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

sqlite3.complete_statement

Prev: sqlite3.Blob | Up: sqlite3 | Next: sqlite3.connect
Rel: sqlite3.adapt, sqlite3.Binary, sqlite3.Blob, sqlite3.connect
Ref: docs.python.org — sqlite3.complete_statement
Tags: #public #python3 #stdlib #sqlite3


Import

import sqlite3
from sqlite3 import complete_statement

Signature & Overview

sqlite3.complete_statement(statement)

Checks if a string contains a complete SQL statement.

Usage

import sqlite3

assert sqlite3.complete_statement("SELECT 1;") is True
assert sqlite3.complete_statement("SELECT 1") is False

Gotchas

REPL Inspect

from sqlite3 import complete_statement
help(complete_statement)

Linked from

Related notes