forked from mozilla/moz-sql-parser
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
28 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,11 @@ | |
# Contact: Kyle Lahnakoski ([email protected]) | ||
# | ||
from mo_parsing import debug, Null | ||
from mo_parsing.whitespaces import NO_WHITESPACE, Whitespace | ||
from mo_parsing.whitespaces import NO_WHITESPACE | ||
|
||
from mo_sql_parsing import utils | ||
from mo_sql_parsing.keywords import * | ||
from mo_sql_parsing.types import get_column_type, time_functions, _sizes | ||
from mo_sql_parsing.types import get_column_type, time_functions, _sizes, unary_ops | ||
from mo_sql_parsing.utils import * | ||
from mo_sql_parsing.windows import window | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# encoding: utf-8 | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
# You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Author: Kyle Lahnakoski ([email protected]) | ||
# | ||
from time import time | ||
import mo_imports | ||
|
||
# ensure first import is fast | ||
start_import = time() | ||
from mo_sql_parsing import format | ||
end_time = time() | ||
print(format({"from":"a"})) | ||
for e in mo_imports._expectations: | ||
print((object.__getattribute__(e, "module"), object.__getattribute__(e, "name"))) | ||
|
||
if mo_imports._monitor: | ||
raise Exception("mo_imports._monitor should not be alive") |