├── .github └── workflows │ ├── ci.yml │ └── docker-release.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── bin └── syncany-sql ├── config.yaml.example ├── docs ├── README.md ├── configure.md ├── driver-dependency.md ├── feature-restrictions.md ├── functions.md └── 使用教程 │ ├── 1、使用介绍.md │ ├── 2、安装和配置.md │ ├── 3、类型注解和类型转换.md │ └── 4、添加使用自定义函数.md ├── examples ├── README.md ├── aggregate │ ├── README.md │ ├── aggregate.sql │ ├── aggregate_batch.sql │ ├── aggregate_customize.py │ ├── data │ │ ├── goodses.json │ │ ├── order_historys.json │ │ ├── orders.json │ │ └── users.json │ └── window_aggregate.sql ├── datetime │ ├── README.md │ └── datetime.sql ├── demo │ ├── README.md │ ├── data │ │ ├── demo.json │ │ ├── orders.json │ │ └── sites.json │ ├── demo.sql │ ├── demo2.sql │ ├── execute.sql │ └── json │ │ ├── database.json │ │ ├── demo.json │ │ └── log.json ├── functions │ └── generate.sql ├── get_value │ ├── README.md │ ├── data │ │ └── data.json │ └── get_value.sql ├── import_python │ ├── README.md │ ├── config.yaml │ ├── import_python.sql │ ├── import_python2.sql │ ├── init.sql │ ├── syncany_ext.py │ ├── util_helpers.py │ └── utils.py ├── insert_types │ ├── README.md │ ├── delete_insert.sql │ ├── insert.sql │ ├── update.sql │ ├── update_delete_insert.sql │ └── update_insert.sql ├── joins │ ├── data │ │ ├── devices.json │ │ ├── goodses.json │ │ ├── order_historys.json │ │ ├── orders.json │ │ ├── services.json │ │ └── users.json │ ├── inner_join.sql │ ├── left_join.sql │ └── right_join.sql ├── json │ ├── README.md │ └── json.sql ├── logic_operation │ ├── data │ │ └── orders.json │ └── logic_operation.sql ├── loop │ └── loop.sql ├── mathematical │ ├── README.md │ └── mathematical.sql ├── memory_temporary_storage │ ├── README.md │ ├── data │ │ └── user.json │ └── memory_temporary_storage.sql ├── nginx-log │ ├── README.md │ ├── data │ │ └── access.log │ └── ip-top-3.sql ├── parameter_variable │ ├── README.md │ ├── data │ │ └── orders.json │ ├── parameter_assign.sql │ └── parameter_variable.sql ├── pyeval │ ├── README.md │ └── pyeval.sql ├── raw_query │ ├── README.md │ └── raw_query.sql ├── strings │ ├── README.md │ └── strings.sql ├── subquery │ ├── data │ │ ├── goodses.json │ │ ├── order_historys.json │ │ ├── orders.json │ │ └── users.json │ └── subquery.sql ├── time_window │ ├── README.md │ ├── data │ │ └── order.csv │ └── time_window.sql ├── transform │ ├── README.md │ ├── data │ │ ├── data.json │ │ └── sites.json │ ├── transform_customize.py │ ├── transform_customize.sql │ ├── transform_h2v.sql │ ├── transform_h4v.sql │ ├── transform_uniqkv.sql │ ├── transform_v2h.sql │ └── transform_v4h.sql ├── type_annotation │ ├── README.md │ ├── data │ │ └── data.json │ ├── type_annotation.sql │ └── type_declaration_cast.sql ├── window_aggregate │ ├── data │ │ ├── goodses.json │ │ ├── orders.json │ │ └── users.json │ ├── window.sql │ └── window_customize.py └── yield_data │ ├── README.md │ ├── generate_customize.py │ └── yield_data.sql ├── requirements.txt ├── setup.cfg ├── setup.py ├── syncanysql ├── __init__.py ├── calculaters │ ├── __init__.py │ ├── aggregate_calculater.py │ ├── env_variable_calculater.py │ ├── generate_calculater.py │ ├── mysql_calculater.py │ ├── mysql_funcs │ │ ├── __init__.py │ │ ├── datetime_funcs.py │ │ ├── json_funcs.py │ │ ├── logical_funcs.py │ │ ├── number_funcs.py │ │ ├── regexp_funcs.py │ │ └── string_funcs.py │ ├── pyeval_calculater.py │ ├── query_tasker_calculater.py │ ├── row_calculater.py │ └── window_calculater.py ├── compiler.py ├── config.py ├── errors.py ├── executor.py ├── main.py ├── parser.py ├── prompt.py ├── taskers │ ├── __init__.py │ ├── delete.py │ ├── execute.py │ ├── explain.py │ ├── into.py │ ├── query.py │ ├── set.py │ ├── show.py │ └── use.py ├── utils.py └── version.py └── tests ├── __init__.py ├── example.py ├── test_example_aggregate.py ├── test_example_datetime.py ├── test_example_demo.py ├── test_example_functions.py ├── test_example_get_value.py ├── test_example_import_python.py ├── test_example_insert_types.py ├── test_example_joins.py ├── test_example_json.py ├── test_example_logic_operation.py ├── test_example_loop.py ├── test_example_mathematical.py ├── test_example_memory_temporary_storage.py ├── test_example_nginx_log.py ├── test_example_parameter_variable.py ├── test_example_pyeval.py ├── test_example_strings.py ├── test_example_subquery.py ├── test_example_time_window.py ├── test_example_transform.py ├── test_example_type_annotation.py ├── test_example_window_aggregate.py ├── test_example_yield_data.py └── test_script_engine.py /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/docker-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/.github/workflows/docker-release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/README.md -------------------------------------------------------------------------------- /bin/syncany-sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/bin/syncany-sql -------------------------------------------------------------------------------- /config.yaml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/config.yaml.example -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/configure.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/configure.md -------------------------------------------------------------------------------- /docs/driver-dependency.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/driver-dependency.md -------------------------------------------------------------------------------- /docs/feature-restrictions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/feature-restrictions.md -------------------------------------------------------------------------------- /docs/functions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/functions.md -------------------------------------------------------------------------------- /docs/使用教程/1、使用介绍.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/使用教程/1、使用介绍.md -------------------------------------------------------------------------------- /docs/使用教程/2、安装和配置.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/使用教程/2、安装和配置.md -------------------------------------------------------------------------------- /docs/使用教程/3、类型注解和类型转换.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/使用教程/3、类型注解和类型转换.md -------------------------------------------------------------------------------- /docs/使用教程/4、添加使用自定义函数.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/docs/使用教程/4、添加使用自定义函数.md -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/aggregate/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/aggregate/aggregate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/aggregate/aggregate.sql -------------------------------------------------------------------------------- /examples/aggregate/aggregate_batch.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/aggregate/aggregate_batch.sql -------------------------------------------------------------------------------- /examples/aggregate/aggregate_customize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/aggregate/aggregate_customize.py -------------------------------------------------------------------------------- /examples/aggregate/data/goodses.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/aggregate/data/goodses.json -------------------------------------------------------------------------------- /examples/aggregate/data/order_historys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/aggregate/data/order_historys.json -------------------------------------------------------------------------------- /examples/aggregate/data/orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/aggregate/data/orders.json -------------------------------------------------------------------------------- /examples/aggregate/data/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/aggregate/data/users.json -------------------------------------------------------------------------------- /examples/aggregate/window_aggregate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/aggregate/window_aggregate.sql -------------------------------------------------------------------------------- /examples/datetime/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/datetime/datetime.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/datetime/datetime.sql -------------------------------------------------------------------------------- /examples/demo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/README.md -------------------------------------------------------------------------------- /examples/demo/data/demo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/data/demo.json -------------------------------------------------------------------------------- /examples/demo/data/orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/data/orders.json -------------------------------------------------------------------------------- /examples/demo/data/sites.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/data/sites.json -------------------------------------------------------------------------------- /examples/demo/demo.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/demo.sql -------------------------------------------------------------------------------- /examples/demo/demo2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/demo2.sql -------------------------------------------------------------------------------- /examples/demo/execute.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/execute.sql -------------------------------------------------------------------------------- /examples/demo/json/database.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/json/database.json -------------------------------------------------------------------------------- /examples/demo/json/demo.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/json/demo.json -------------------------------------------------------------------------------- /examples/demo/json/log.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/demo/json/log.json -------------------------------------------------------------------------------- /examples/functions/generate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/functions/generate.sql -------------------------------------------------------------------------------- /examples/get_value/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/get_value/data/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/get_value/data/data.json -------------------------------------------------------------------------------- /examples/get_value/get_value.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/get_value/get_value.sql -------------------------------------------------------------------------------- /examples/import_python/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/import_python/README.md -------------------------------------------------------------------------------- /examples/import_python/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/import_python/config.yaml -------------------------------------------------------------------------------- /examples/import_python/import_python.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/import_python/import_python.sql -------------------------------------------------------------------------------- /examples/import_python/import_python2.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/import_python/import_python2.sql -------------------------------------------------------------------------------- /examples/import_python/init.sql: -------------------------------------------------------------------------------- 1 | use `util_helpers as uh`; -------------------------------------------------------------------------------- /examples/import_python/syncany_ext.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/import_python/syncany_ext.py -------------------------------------------------------------------------------- /examples/import_python/util_helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/import_python/util_helpers.py -------------------------------------------------------------------------------- /examples/import_python/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/import_python/utils.py -------------------------------------------------------------------------------- /examples/insert_types/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/insert_types/delete_insert.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/insert_types/delete_insert.sql -------------------------------------------------------------------------------- /examples/insert_types/insert.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/insert_types/insert.sql -------------------------------------------------------------------------------- /examples/insert_types/update.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/insert_types/update.sql -------------------------------------------------------------------------------- /examples/insert_types/update_delete_insert.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/insert_types/update_delete_insert.sql -------------------------------------------------------------------------------- /examples/insert_types/update_insert.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/insert_types/update_insert.sql -------------------------------------------------------------------------------- /examples/joins/data/devices.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/data/devices.json -------------------------------------------------------------------------------- /examples/joins/data/goodses.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/data/goodses.json -------------------------------------------------------------------------------- /examples/joins/data/order_historys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/data/order_historys.json -------------------------------------------------------------------------------- /examples/joins/data/orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/data/orders.json -------------------------------------------------------------------------------- /examples/joins/data/services.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/data/services.json -------------------------------------------------------------------------------- /examples/joins/data/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/data/users.json -------------------------------------------------------------------------------- /examples/joins/inner_join.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/inner_join.sql -------------------------------------------------------------------------------- /examples/joins/left_join.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/left_join.sql -------------------------------------------------------------------------------- /examples/joins/right_join.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/joins/right_join.sql -------------------------------------------------------------------------------- /examples/json/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/json/json.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/json/json.sql -------------------------------------------------------------------------------- /examples/logic_operation/data/orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/logic_operation/data/orders.json -------------------------------------------------------------------------------- /examples/logic_operation/logic_operation.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/logic_operation/logic_operation.sql -------------------------------------------------------------------------------- /examples/loop/loop.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/loop/loop.sql -------------------------------------------------------------------------------- /examples/mathematical/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/mathematical/mathematical.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/mathematical/mathematical.sql -------------------------------------------------------------------------------- /examples/memory_temporary_storage/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/memory_temporary_storage/data/user.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/memory_temporary_storage/data/user.json -------------------------------------------------------------------------------- /examples/memory_temporary_storage/memory_temporary_storage.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/memory_temporary_storage/memory_temporary_storage.sql -------------------------------------------------------------------------------- /examples/nginx-log/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/nginx-log/README.md -------------------------------------------------------------------------------- /examples/nginx-log/data/access.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/nginx-log/data/access.log -------------------------------------------------------------------------------- /examples/nginx-log/ip-top-3.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/nginx-log/ip-top-3.sql -------------------------------------------------------------------------------- /examples/parameter_variable/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/parameter_variable/data/orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/parameter_variable/data/orders.json -------------------------------------------------------------------------------- /examples/parameter_variable/parameter_assign.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/parameter_variable/parameter_assign.sql -------------------------------------------------------------------------------- /examples/parameter_variable/parameter_variable.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/parameter_variable/parameter_variable.sql -------------------------------------------------------------------------------- /examples/pyeval/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/pyeval/README.md -------------------------------------------------------------------------------- /examples/pyeval/pyeval.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/pyeval/pyeval.sql -------------------------------------------------------------------------------- /examples/raw_query/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/raw_query/raw_query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/raw_query/raw_query.sql -------------------------------------------------------------------------------- /examples/strings/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/strings/strings.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/strings/strings.sql -------------------------------------------------------------------------------- /examples/subquery/data/goodses.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/subquery/data/goodses.json -------------------------------------------------------------------------------- /examples/subquery/data/order_historys.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/subquery/data/order_historys.json -------------------------------------------------------------------------------- /examples/subquery/data/orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/subquery/data/orders.json -------------------------------------------------------------------------------- /examples/subquery/data/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/subquery/data/users.json -------------------------------------------------------------------------------- /examples/subquery/subquery.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/subquery/subquery.sql -------------------------------------------------------------------------------- /examples/time_window/README.md: -------------------------------------------------------------------------------- 1 | # 对齐到时间点 -------------------------------------------------------------------------------- /examples/time_window/data/order.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/time_window/data/order.csv -------------------------------------------------------------------------------- /examples/time_window/time_window.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/time_window/time_window.sql -------------------------------------------------------------------------------- /examples/transform/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/README.md -------------------------------------------------------------------------------- /examples/transform/data/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/data/data.json -------------------------------------------------------------------------------- /examples/transform/data/sites.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/data/sites.json -------------------------------------------------------------------------------- /examples/transform/transform_customize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/transform_customize.py -------------------------------------------------------------------------------- /examples/transform/transform_customize.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/transform_customize.sql -------------------------------------------------------------------------------- /examples/transform/transform_h2v.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/transform_h2v.sql -------------------------------------------------------------------------------- /examples/transform/transform_h4v.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/transform_h4v.sql -------------------------------------------------------------------------------- /examples/transform/transform_uniqkv.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/transform_uniqkv.sql -------------------------------------------------------------------------------- /examples/transform/transform_v2h.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/transform_v2h.sql -------------------------------------------------------------------------------- /examples/transform/transform_v4h.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/transform/transform_v4h.sql -------------------------------------------------------------------------------- /examples/type_annotation/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/type_annotation/data/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/type_annotation/data/data.json -------------------------------------------------------------------------------- /examples/type_annotation/type_annotation.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/type_annotation/type_annotation.sql -------------------------------------------------------------------------------- /examples/type_annotation/type_declaration_cast.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/type_annotation/type_declaration_cast.sql -------------------------------------------------------------------------------- /examples/window_aggregate/data/goodses.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/window_aggregate/data/goodses.json -------------------------------------------------------------------------------- /examples/window_aggregate/data/orders.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/window_aggregate/data/orders.json -------------------------------------------------------------------------------- /examples/window_aggregate/data/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/window_aggregate/data/users.json -------------------------------------------------------------------------------- /examples/window_aggregate/window.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/window_aggregate/window.sql -------------------------------------------------------------------------------- /examples/window_aggregate/window_customize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/window_aggregate/window_customize.py -------------------------------------------------------------------------------- /examples/yield_data/README.md: -------------------------------------------------------------------------------- 1 | # yield迭代展开数组 -------------------------------------------------------------------------------- /examples/yield_data/generate_customize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/yield_data/generate_customize.py -------------------------------------------------------------------------------- /examples/yield_data/yield_data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/examples/yield_data/yield_data.sql -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal=1 -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/setup.py -------------------------------------------------------------------------------- /syncanysql/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/__init__.py -------------------------------------------------------------------------------- /syncanysql/calculaters/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/__init__.py -------------------------------------------------------------------------------- /syncanysql/calculaters/aggregate_calculater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/aggregate_calculater.py -------------------------------------------------------------------------------- /syncanysql/calculaters/env_variable_calculater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/env_variable_calculater.py -------------------------------------------------------------------------------- /syncanysql/calculaters/generate_calculater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/generate_calculater.py -------------------------------------------------------------------------------- /syncanysql/calculaters/mysql_calculater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/mysql_calculater.py -------------------------------------------------------------------------------- /syncanysql/calculaters/mysql_funcs/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/mysql_funcs/__init__.py -------------------------------------------------------------------------------- /syncanysql/calculaters/mysql_funcs/datetime_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/mysql_funcs/datetime_funcs.py -------------------------------------------------------------------------------- /syncanysql/calculaters/mysql_funcs/json_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/mysql_funcs/json_funcs.py -------------------------------------------------------------------------------- /syncanysql/calculaters/mysql_funcs/logical_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/mysql_funcs/logical_funcs.py -------------------------------------------------------------------------------- /syncanysql/calculaters/mysql_funcs/number_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/mysql_funcs/number_funcs.py -------------------------------------------------------------------------------- /syncanysql/calculaters/mysql_funcs/regexp_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/mysql_funcs/regexp_funcs.py -------------------------------------------------------------------------------- /syncanysql/calculaters/mysql_funcs/string_funcs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/mysql_funcs/string_funcs.py -------------------------------------------------------------------------------- /syncanysql/calculaters/pyeval_calculater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/pyeval_calculater.py -------------------------------------------------------------------------------- /syncanysql/calculaters/query_tasker_calculater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/query_tasker_calculater.py -------------------------------------------------------------------------------- /syncanysql/calculaters/row_calculater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/row_calculater.py -------------------------------------------------------------------------------- /syncanysql/calculaters/window_calculater.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/calculaters/window_calculater.py -------------------------------------------------------------------------------- /syncanysql/compiler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/compiler.py -------------------------------------------------------------------------------- /syncanysql/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/config.py -------------------------------------------------------------------------------- /syncanysql/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/errors.py -------------------------------------------------------------------------------- /syncanysql/executor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/executor.py -------------------------------------------------------------------------------- /syncanysql/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/main.py -------------------------------------------------------------------------------- /syncanysql/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/parser.py -------------------------------------------------------------------------------- /syncanysql/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/prompt.py -------------------------------------------------------------------------------- /syncanysql/taskers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/__init__.py -------------------------------------------------------------------------------- /syncanysql/taskers/delete.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/delete.py -------------------------------------------------------------------------------- /syncanysql/taskers/execute.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/execute.py -------------------------------------------------------------------------------- /syncanysql/taskers/explain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/explain.py -------------------------------------------------------------------------------- /syncanysql/taskers/into.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/into.py -------------------------------------------------------------------------------- /syncanysql/taskers/query.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/query.py -------------------------------------------------------------------------------- /syncanysql/taskers/set.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/set.py -------------------------------------------------------------------------------- /syncanysql/taskers/show.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/show.py -------------------------------------------------------------------------------- /syncanysql/taskers/use.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/taskers/use.py -------------------------------------------------------------------------------- /syncanysql/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/utils.py -------------------------------------------------------------------------------- /syncanysql/version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/syncanysql/version.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/example.py -------------------------------------------------------------------------------- /tests/test_example_aggregate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_aggregate.py -------------------------------------------------------------------------------- /tests/test_example_datetime.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_datetime.py -------------------------------------------------------------------------------- /tests/test_example_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_demo.py -------------------------------------------------------------------------------- /tests/test_example_functions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_functions.py -------------------------------------------------------------------------------- /tests/test_example_get_value.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_get_value.py -------------------------------------------------------------------------------- /tests/test_example_import_python.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_import_python.py -------------------------------------------------------------------------------- /tests/test_example_insert_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_insert_types.py -------------------------------------------------------------------------------- /tests/test_example_joins.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_joins.py -------------------------------------------------------------------------------- /tests/test_example_json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_json.py -------------------------------------------------------------------------------- /tests/test_example_logic_operation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_logic_operation.py -------------------------------------------------------------------------------- /tests/test_example_loop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_loop.py -------------------------------------------------------------------------------- /tests/test_example_mathematical.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_mathematical.py -------------------------------------------------------------------------------- /tests/test_example_memory_temporary_storage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_memory_temporary_storage.py -------------------------------------------------------------------------------- /tests/test_example_nginx_log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_nginx_log.py -------------------------------------------------------------------------------- /tests/test_example_parameter_variable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_parameter_variable.py -------------------------------------------------------------------------------- /tests/test_example_pyeval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_pyeval.py -------------------------------------------------------------------------------- /tests/test_example_strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_strings.py -------------------------------------------------------------------------------- /tests/test_example_subquery.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_subquery.py -------------------------------------------------------------------------------- /tests/test_example_time_window.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_time_window.py -------------------------------------------------------------------------------- /tests/test_example_transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_transform.py -------------------------------------------------------------------------------- /tests/test_example_type_annotation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_type_annotation.py -------------------------------------------------------------------------------- /tests/test_example_window_aggregate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_window_aggregate.py -------------------------------------------------------------------------------- /tests/test_example_yield_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_example_yield_data.py -------------------------------------------------------------------------------- /tests/test_script_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snower/syncany-sql/HEAD/tests/test_script_engine.py --------------------------------------------------------------------------------