-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MySQL in Malloy (from Fernando's Repo) (#1948)
* MySQL in Malloy (from Fernando's Repo) * simplification of the query interface and beginning to nest. * Get basic nesting to work. * rework get description for SQL block * Fix symmetric aggregates. * add notation for native booleans * boolean logic in tests * MySQL doesn't support FULL JOIN UNNEST Support for pipelines * An attempt at nested pipelines (failing still) turning off features mysql doesn't support * Update the group_concat_max * '*' comes first in select. * Filtered sources, Unnest redux casting * booleanResult for boolean results. * Adding Functions * more functions. * More tests. * more functions. trim is weird. * more attempts to fix * handle version weirdness * update for structdef * string_agg: * Fix tests. * Remove mysql test for now * stub test. * rename so it doesn't get called. * remove test --------- Co-authored-by: Michael Toy <66150587+mtoy-googly-moogly@users.noreply.github.com>
- Loading branch information
1 parent
06dca1d
commit 1631bc9
Showing
34 changed files
with
1,486 additions
and
80 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
src/ | ||
*.map | ||
tsconfig* | ||
*.spec |
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,31 @@ | ||
{ | ||
"name": "@malloydata/db-mysql", | ||
"version": "0.0.196", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"homepage": "https://github.com/malloydata/malloy#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/malloydata/malloy" | ||
}, | ||
"scripts": { | ||
"lint": "eslint '**/*.ts{,x}'", | ||
"lint-fix": "eslint '**/*.ts{,x}' --fix", | ||
"test": "jest --config=../../jest.config.js", | ||
"build": "tsc --build", | ||
"clean": "tsc --build --clean", | ||
"malloyc": "ts-node ../../scripts/malloy-to-json", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"dependencies": { | ||
"@malloydata/malloy": "^0.0.196", | ||
"@types/node": "^22.7.4", | ||
"fastestsmallesttextencoderdecoder": "^1.0.22", | ||
"luxon": "^3.5.0", | ||
"mysql2": "^3.11.3" | ||
} | ||
} |
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,8 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
export {MySQLConnection, MySQLExecutor} from './mysql_connection'; |
Oops, something went wrong.