Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 124 additions & 0 deletions third_party/2and3/sqlalchemy/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Stubs for sqlalchemy (Python 2 and 3)

from .sql import (
alias,
and_,
asc,
between,
bindparam,
case,
cast,
collate,
column,
delete,
desc,
distinct,
except_,
except_all,
exists,
extract,
false,
func,
funcfilter,
insert,
intersect,
intersect_all,
join,
literal,
literal_column,
modifier,
not_,
null,
or_,
outerjoin,
outparam,
over,
select,
subquery,
table,
text,
true,
tuple_,
type_coerce,
union,
union_all,
update,
)

from .types import (
BIGINT,
BINARY,
BLOB,
BOOLEAN,
BigInteger,
Binary,
Boolean,
CHAR,
CLOB,
DATE,
DATETIME,
DECIMAL,
Date,
DateTime,
Enum,
FLOAT,
Float,
INT,
INTEGER,
Integer,
Interval,
LargeBinary,
NCHAR,
NVARCHAR,
NUMERIC,
Numeric,
PickleType,
REAL,
SMALLINT,
SmallInteger,
String,
TEXT,
TIME,
TIMESTAMP,
Text,
Time,
TypeDecorator,
Unicode,
UnicodeText,
VARBINARY,
VARCHAR,
)

from .schema import (
CheckConstraint,
Column,
ColumnDefault,
Constraint,
DefaultClause,
FetchedValue,
ForeignKey,
ForeignKeyConstraint,
Index,
MetaData,
PassiveDefault,
PrimaryKeyConstraint,
Sequence,
Table,
ThreadLocalMetaData,
UniqueConstraint,
DDL,
)

from . import sql as sql
from . import schema as schema
from . import types as types
from . import exc as exc
from . import dialects as dialects
from . import pool as pool
# This should re-export orm but orm is totally broken right now
# from . import orm as orm

from .inspection import inspect
from .engine import create_engine, engine_from_config

__version__ = ... # type: int
12 changes: 12 additions & 0 deletions third_party/2and3/sqlalchemy/databases/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Stubs for sqlalchemy.databases (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

# Names in __all__ with no definition:
# firebird
# mssql
# mysql
# oracle
# postgresql
# sqlite
# sybase
1 change: 1 addition & 0 deletions third_party/2and3/sqlalchemy/databases/mysql.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from sqlalchemy.dialects.mysql.base import *
12 changes: 12 additions & 0 deletions third_party/2and3/sqlalchemy/dialects/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Stubs for sqlalchemy.dialects (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

# Names in __all__ with no definition:
# firebird
# mssql
# mysql
# oracle
# postgresql
# sqlite
# sybase
40 changes: 40 additions & 0 deletions third_party/2and3/sqlalchemy/dialects/mysql/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Stubs for sqlalchemy.dialects.mysql (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from . import base

BIGINT = base.BIGINT
BINARY = base.BINARY
BIT = base.BIT
BLOB = base.BLOB
BOOLEAN = base.BOOLEAN
CHAR = base.CHAR
DATE = base.DATE
DATETIME = base.DATETIME
DECIMAL = base.DECIMAL
DOUBLE = base.DOUBLE
ENUM = base.ENUM
FLOAT = base.FLOAT
INTEGER = base.INTEGER
LONGBLOB = base.LONGBLOB
LONGTEXT = base.LONGTEXT
MEDIUMBLOB = base.MEDIUMBLOB
MEDIUMINT = base.MEDIUMINT
MEDIUMTEXT = base.MEDIUMTEXT
NCHAR = base.NCHAR
NVARCHAR = base.NVARCHAR
NUMERIC = base.NUMERIC
SET = base.SET
SMALLINT = base.SMALLINT
REAL = base.REAL
TEXT = base.TEXT
TIME = base.TIME
TIMESTAMP = base.TIMESTAMP
TINYBLOB = base.TINYBLOB
TINYINT = base.TINYINT
TINYTEXT = base.TINYTEXT
VARBINARY = base.VARBINARY
VARCHAR = base.VARCHAR
YEAR = base.YEAR
## dialect = base.dialect
Loading