-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Not working * Working, resolved #197 * Remove faulty test * Working, resolved #190 * Test and resolved #189 * Auto increment columns (#3) * Remade for v0.5 * Clippy * Appease no defaults clippy * Clean up generate * Remove sled transaction and use ColumnOptionExt for AutoIncrement column option check * Clip * Improvements * Clippy * No Mut change * Minimize work in storage * Split get and set * Clip * Move row mutation to end, make procedures occur in two segments. * Clean up a little, Clip * Better testing * Stuff for clippy reasons * Revert "Stuff for clippy reasons" This reverts commit 99956a6. * Ignore clippy stuff for now, should be fixed in different PR * Use a transaction * Clippy and remove acceptance of AUTOINCREMENT * Api select json (#1) * Working * Move more into optional feature * Remove test comment * Revert "Merge branch 'INSERT_fixes' of https://github.com/KyGost/gluesql into INSERT_fixes" This reverts commit 4f1b1da, reversing changes made to 328858d.
- Loading branch information
Showing
11 changed files
with
306 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use { | ||
crate::{ | ||
data::Value, | ||
executor::Evaluated, | ||
result::{Error, Result}, | ||
}, | ||
std::convert::TryFrom, | ||
}; | ||
|
||
impl TryFrom<Evaluated<'_>> for Value { | ||
type Error = Error; | ||
|
||
fn try_from(evaluated: Evaluated) -> Result<Self> { | ||
match evaluated { | ||
Evaluated::Literal(literal) => Value::try_from(literal), | ||
Evaluated::Value(value) => Ok(value), | ||
} | ||
} | ||
} |
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
Oops, something went wrong.