From 4f69c5447fda8ac13d1a4f14cf2562fd7bd8425d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 20 Nov 2026 20:27:31 +0000 Subject: [PATCH] Make kite_sql_mysql a standalone crate - Replace path dependencies with git dependencies pinned to cursor/dual-mode-tests-0fca - Update Cargo.toml metadata (authors, repository, documentation) - Add LICENSE (Apache-2.0) and NOTICE acknowledging KiteSQL - Add .gitignore for /target - Add rust-toolchain matching KiteSQL - Rewrite README for standalone use with trademark notice - Add CI workflow with fmt, clippy, and test jobs - Fix README example to use correct API (inline values, not bind methods) Co-authored-by: Alex Skinner --- .github/workflows/ci.yml | 39 ++++++++ .gitignore | 2 + Cargo.toml | 14 ++- LICENSE | 201 +++++++++++++++++++++++++++++++++++++++ NOTICE | 9 ++ README.md | 158 ++++++++++++++++++------------ rust-toolchain | 1 + 7 files changed, 360 insertions(+), 64 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 NOTICE create mode 100644 rust-toolchain diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a1a59cd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +env: + CARGO_TERM_COLOR: always + +jobs: + fmt: + name: Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - run: cargo fmt --all -- --check + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - run: cargo clippy --all-targets --all-features -- -D warnings + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo test --all-features diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96ef6c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/target +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml index b3b343d..4450d1b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,16 +2,18 @@ name = "kite_sql_mysql" version = "0.7.0" edition = "2021" -authors = ["Kould ", "Xwg "] +authors = ["Alex Skinner"] description = "MySQL dialect support for KiteSQL" -documentation = "https://docs.rs/kite_sql_mysql/latest/kite_sql_mysql/" +documentation = "https://github.com/alexskinner/KiteSQL-MySQL" license = "Apache-2.0" -repository = "https://github.com/KipData/KiteSQL" +repository = "https://github.com/alexskinner/KiteSQL-MySQL" keywords = ["sql", "mysql", "database"] categories = ["development-tools", "database"] [dependencies] -kite_sql = { path = "..", default-features = false, features = ["parser", "decimal"] } +# Pinned to cursor/dual-mode-tests-0fca branch which contains the dialect hooks +# and test infrastructure this crate depends on. +kite_sql = { git = "https://github.com/alexskinner/KiteSQL", rev = "806503632a84aecd15bbc5d31723b125671ee224", default-features = false, features = ["parser", "decimal"] } sqlparser = { version = "0.61", features = ["visitor"] } ordered-float = "4.6" uuid = { version = "1.10", features = ["v4"] } @@ -19,5 +21,7 @@ rust_decimal = { version = "1", default-features = false, features = ["std"] } icu_normalizer = { version = "2.4", default-features = false, features = ["compiled_data"] } [dev-dependencies] -kite_sql = { path = "..", default-features = false, features = ["time", "macros", "parser", "lmdb", "spill", "decimal", "orm", "copy"] } +# Pinned to cursor/dual-mode-tests-0fca branch which contains the dialect hooks +# and test infrastructure this crate depends on. +kite_sql = { git = "https://github.com/alexskinner/KiteSQL", rev = "806503632a84aecd15bbc5d31723b125671ee224", default-features = false, features = ["time", "macros", "parser", "lmdb", "spill", "decimal", "orm", "copy"] } tempfile = "3.10" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..6a4ff2d --- /dev/null +++ b/NOTICE @@ -0,0 +1,9 @@ +KiteSQL-MySQL + +This software builds upon KiteSQL, which is licensed under the Apache License 2.0. +KiteSQL is Copyright (c) 2024 KipData and contributors. + +Original KiteSQL repository: https://github.com/KipData/KiteSQL + +The MySQL dialect implementation in this repository is an independent extension +that registers MySQL-specific functionality through KiteSQL's dialect hooks. diff --git a/README.md b/README.md index 61914ea..3d5493e 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,26 @@ # kite_sql_mysql -MySQL dialect support for [KiteSQL](https://github.com/KipData/KiteSQL). +MySQL dialect support for [KiteSQL](https://github.com/KipData/KiteSQL)[^trademark]. -## Features +[^trademark]: See the [Trademark Notice](#trademark-notice) section below. -This crate provides MySQL-specific functionality for KiteSQL: +## Overview -- **MySQL Dialect**: Full MySQL SQL dialect support via sqlparser -- **MySQL Type Mappings**: - - `TINYTEXT`, `MEDIUMTEXT`, `LONGTEXT` → `VARCHAR(None)` - - `BIT(1)` → `BOOLEAN` - - `BIT(n)` (n > 1) → `UBIGINT` - - `SERIAL` → `UBIGINT NOT NULL AUTO_INCREMENT UNIQUE` -- **AUTO_INCREMENT**: columns and the `AUTO_INCREMENT = n` table option, on the core identity - column; an explicit 0 generates like NULL; `LAST_INSERT_ID()` / `LAST_INSERT_ID(expr)` - - `TINYINT(1)` works as expected -- **Exact-value arithmetic** as in MySQL 8: - - A number with a decimal point and no exponent (`0.1`, `.5`, `2.50`) is an exact `DECIMAL`, so `0.1 + 0.2 = 0.3`; with an exponent (`1e2`) it stays `DOUBLE`. Integers above `BIGINT` up to 18446744073709551615 are `BIGINT UNSIGNED`. - - `/` on exact values gives `DECIMAL` with the dividend's scale plus `div_precision_increment` (4): `7 / 2 = 3.5000`, `1.0 / 3 = 0.33333`. - - `*` adds the operand scales (`1.10 * 2.5 = 2.750`); `+`, `-` and `%` keep the larger one. `%` and `MOD()` take the dividend's sign. - - `DIV` is integer division, truncating toward zero, with the precedence of `*` and `/`. - - Division or modulo by zero gives `NULL` with warning 1365. - - Limits: values hold up to 28 significant digits (longer literals are read as `DOUBLE`); MySQL keeps division intermediates truncated at nine decimals, here a chain is exact and rounded once at the end, so results differ in the last digit for chains like `2 / 3 * 1000000000`. -- **Easy Integration**: Extension trait for `DataBaseBuilder` +This crate provides MySQL-specific functionality for KiteSQL through its dialect registration hooks. It enables KiteSQL to parse and execute MySQL-specific SQL syntax, type mappings, functions, and collation rules. -## Usage +## Installation -Add both `kite_sql` and `kite_sql_mysql` to your dependencies: +Add this to your `Cargo.toml`: ```toml [dependencies] -kite_sql = "0.7" -kite_sql_mysql = "0.7" +kite_sql = { git = "https://github.com/alexskinner/KiteSQL", rev = "806503632a84aecd15bbc5d31723b125671ee224" } +kite_sql_mysql = { git = "https://github.com/alexskinner/KiteSQL-MySQL" } ``` -Then use the `with_mysql()` extension method: +## Usage + +Use the `with_mysql()` extension method to register the MySQL dialect with your database: ```rust use kite_sql::db::DataBaseBuilder; @@ -45,65 +31,119 @@ fn main() -> Result<(), Box> { .with_mysql()? .build_in_memory()?; - // Now you can use MySQL-specific types like MEDIUMTEXT - database.ddl("CREATE TABLE users (id INT PRIMARY KEY, bio MEDIUMTEXT)")?; - database.run("INSERT INTO users VALUES (1, 'Long biography text...')")?.done()?; + // Now you can use MySQL-specific types and syntax + database.ddl("CREATE TABLE users ( + id INT AUTO_INCREMENT PRIMARY KEY, + name VARCHAR(100), + bio MEDIUMTEXT + )")?; + + database.run("INSERT INTO users (name, bio) VALUES ('Alice', 'Software developer')")? + .done()?; let mut result = database.run("SELECT * FROM users WHERE id = 1")?; - let tuple = result.next_tuple(|_, tuple| tuple.clone())?.expect("expected a row"); - println!("{:?}", tuple); + if let Some(tuple) = result.next_tuple(|_, tuple| tuple.clone())? { + println!("{:?}", tuple); + } result.done()?; Ok(()) } ``` -## MySQL Type Support +## Features + +### MySQL Type Mappings + +- **Text Types**: `TINYTEXT`, `MEDIUMTEXT`, `LONGTEXT` → `VARCHAR` without length limit +- **Bit Types**: + - `BIT(1)` → `BOOLEAN` + - `BIT(n)` (n > 1) → `UBIGINT` +- **Serial Type**: `SERIAL` → `UBIGINT NOT NULL AUTO_INCREMENT UNIQUE` +- **Integer Display Width**: `TINYINT(1)` and other display widths work as expected + +### AUTO_INCREMENT and LAST_INSERT_ID() + +Identity columns with `AUTO_INCREMENT` are supported, including: +- The `AUTO_INCREMENT = n` table option +- Explicit 0 values generate new IDs like NULL +- `LAST_INSERT_ID()` returns the last generated ID +- `LAST_INSERT_ID(expr)` sets and returns a value + +### Exact-Value Arithmetic (MySQL 8 Compatibility) -### Text Types +- **Exact Decimal Literals**: Numbers with a decimal point and no exponent (`0.1`, `.5`, `2.50`) are treated as exact `DECIMAL` values, so `0.1 + 0.2 = 0.3` exactly +- **Division**: `/` on exact values produces `DECIMAL` with scale = dividend scale + 4, so `7 / 2 = 3.5000` and `1.0 / 3 = 0.33333` +- **Arithmetic Operations**: + - `*` adds operand scales (`1.10 * 2.5 = 2.750`) + - `+`, `-`, `%` keep the larger scale + - `%` and `MOD()` take the dividend's sign +- **Integer Division**: `DIV` performs integer division, truncating toward zero, with the precedence of `*` and `/` +- **Division by Zero**: Returns `NULL` with warning code 1365 +- **Precision Limits**: Values hold up to 28 significant digits -- `TINYTEXT`: Maps to `VARCHAR` without length limit -- `MEDIUMTEXT`: Maps to `VARCHAR` without length limit -- `LONGTEXT`: Maps to `VARCHAR` without length limit +### MySQL Collation (utf8mb4_0900_ai_ci) -### Bit Types +Text comparison follows MySQL 8's default collation: case- and accent-insensitive, NO PAD: +- `'Smith' = 'SMITH'`, `'é' = 'e'`, `'ß' = 'ss'` +- `'a' <> 'a '` (trailing spaces matter) -- `BIT(1)`: Maps to `BOOLEAN` -- `BIT(n)` where n > 1: Maps to `UBIGINT` +Applies to: `=`, `<>`, `<`, `>`, `IN`, `BETWEEN`, `CASE`, `NULLIF`, `STRCMP`, `FIELD`, `FIND_IN_SET`, `ORDER BY`, `GROUP BY`, `DISTINCT`, `UNION`, joins, `MIN`/`MAX`, and to primary and unique keys. -### Serial Type +**Byte-wise comparison** can be forced with: +- `BINARY x`, `CAST(x AS BINARY)` +- `COLLATE …_bin`, `…_cs`, or `binary` +- Columns declared with these collations -- `SERIAL`: Maps to `UBIGINT NOT NULL AUTO_INCREMENT UNIQUE` +**LIKE** is case-insensitive by default unless an operand is marked binary, and supports: +- `ESCAPE` clause for custom escape characters +- Standard `%` and `_` wildcards -### Integer Types +### MySQL Functions -- `TINYINT(1)`: Works as standard `TINYINT` +Includes MySQL-specific implementations of: +- String functions: `REPLACE`, `CONCAT`, `SUBSTRING`, `LENGTH`, and others +- Aggregate functions: `GROUP_CONCAT` with `ORDER BY` and `SEPARATOR` support +- Conditional functions: `ISNULL()`, `IFNULL()`, `IF()` +- Comparison functions: `GREATEST`, `LEAST` with MySQL type compatibility -## Collation +### NULL Ordering -Text compares as MySQL 8's default collation, `utf8mb4_0900_ai_ci`: case- and accent-insensitive (`'Smith' = 'SMITH'`, `'é' = 'e'`, `'ß' = 'ss'`) and NO PAD (`'a' <> 'a '`). This applies to `=`, `<>`, `<`, `>`, `IN`, `BETWEEN`, `CASE`, `NULLIF`, `STRCMP`, `FIELD`, `FIND_IN_SET`, `ORDER BY`, `GROUP BY`, `DISTINCT`, `UNION`, joins, `MIN`/`MAX`, and to primary and unique keys of tables created through this dialect: inserting `'SMITH'` next to `'Smith'` fails as a duplicate. +Results order NULLs as MySQL does: NULLs first when ascending, NULLs last when descending. -Byte-wise comparison: +### Warning Codes -- `BINARY x`, `CAST(x AS BINARY)` and `x COLLATE …_bin` / `…_cs` / `binary` make the whole comparison (or `ORDER BY` key) byte-wise; `COLLATE …_as_ci` compares the lowercase text byte-wise (accent-sensitive, case-insensitive). -- Columns declared `COLLATE …_bin` / `…_cs`, or in a table declared `COLLATE=…_bin` / `…_cs`, compare byte-wise in comparisons, `IN`, `BETWEEN`, `ORDER BY` and `COUNT(DISTINCT …)`, and a primary or unique key over one stays byte-wise. -- `LIKE` keeps its own rules (see above): case-insensitive unless an operand is marked binary. +Division by zero and numeric truncation generate MySQL-compatible warning codes (1365). -Not modelled yet: +### Type System Compatibility -- The full Unicode Collation Algorithm: letters and digits order as MySQL does, but punctuation and symbols keep code point order (MySQL sorts all punctuation before digits), and there are no contractions or language-specific rules. Equality follows MySQL for case, accents, compatibility forms (`'fi' = 'fi'`, `'A' = 'a'`) and the common expansions (`ß`, `æ`, `œ`, `ø`, `đ`, `ð`, `ł`, `ħ`). -- `GROUP BY`, `DISTINCT`, `UNION` and `MIN`/`MAX` on a `_bin` / `_cs` column still fold case (comparisons and joins on it are byte-wise). -- Accent folding in `LIKE` (`'ÀBC' LIKE 'abc'`), and `LIKE` on a `_bin` / `_cs` column without an explicit marker. -- Collations given by `ALTER TABLE … ADD/MODIFY COLUMN … COLLATE`, column character sets, and per-column collation metadata beyond "byte-wise or not". -- Error 1267 (illegal mix of collations) outside `LIKE`. -- Tables created before this collation support (or through another dialect) keep byte-wise primary and index keys; recreate them to fold their keys. -- A unique index over a `_bin` / `_cs` column added later with `CREATE UNIQUE INDEX` is refused when the table folds its keys. +Proper type comparison rules for: +- Boolean values +- Signed vs unsigned integers +- Temporal types +- Decimal precision and scale + +## Limitations + +Not yet modeled: +- Full Unicode Collation Algorithm for punctuation/symbol ordering +- Some collation edge cases in `GROUP BY`, `DISTINCT`, `UNION` on `_bin`/`_cs` columns +- Accent folding in `LIKE` +- Per-column collation metadata beyond "byte-wise or not" +- Error 1267 (illegal mix of collations) outside `LIKE` ## See Also -- [KiteSQL Documentation](https://docs.rs/kite_sql) -- [Writing Custom Dialects](../docs/features.md#sql-dialects) +- [KiteSQL](https://github.com/KipData/KiteSQL) +- [KiteSQL API documentation](https://docs.rs/kite_sql) +- [SQL dialects in KiteSQL, including writing custom dialects](https://github.com/alexskinner/KiteSQL/blob/main/docs/features.md#sql-dialects) + +## Trademark Notice + +**MySQL is a registered trademark of Oracle Corporation and/or its affiliates.** KiteSQL-MySQL is an independent open source project and is not affiliated with, sponsored by, or endorsed by Oracle Corporation. The name "MySQL" is used only to describe the SQL dialect and syntax this crate aims to be compatible with. ## License -Apache-2.0 +Licensed under the Apache License, Version 2.0. See the LICENSE file for details. + +This software builds upon KiteSQL, which is also licensed under Apache 2.0 and is Copyright (c) 2024 KipData and contributors. diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000..2bf5ad0 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +stable