-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some missing wrappers #1139
Conversation
sqlite3_bind_*64 vs sqlite3_bind_* sqlite3_changes64 vs sqlite3_changes sqlite3_db_readonly sqlite3_error_offset sqlite3_index_info.colUsed sqlite3_index_info.idxFlags sqlite3_prepare_v3 vs sqlite3_prepare_v2 sqlite3_normalized_sql sqlite3_stmt_isexplain sqlite3_result_*64 vs sqlite3_result_* sqlite3_result_subtype sqlite3_trace_v2 vs sqlite3_trace sqlite3_txn_state sqlite3_value_subtype sqlite3_value_nochange sqlite3_value_frombind sqlite3_vtab_collation sqlite3_vtab_config sqlite3_vtab_distinct sqlite3_vtab_in sqlite3_vtab_nochange sqlite3_vtab_rhs_value
sqlite3_value_subtype sqlite3_result_subtype sqlite3_changes64 sqlite3_vtab_config
sqlite3_index_info.idxFlags sqlite3_index_info.colUsed sqlite3_vtab_distinct sqlite3_vtab_in
Codecov Report
@@ Coverage Diff @@
## master #1139 +/- ##
==========================================
- Coverage 78.43% 78.21% -0.22%
==========================================
Files 47 47
Lines 5842 5927 +85
==========================================
+ Hits 4582 4636 +54
- Misses 1260 1291 +31
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me.
#[repr(i32)] | ||
#[non_exhaustive] | ||
#[cfg(feature = "modern_sqlite")] // 3.7.7 | ||
pub enum VTabConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason not to derive at least #[derive(Debug, Clone, Copy, PartialEq)]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will
sqlite3_db_readonly sqlite3_txn_state sqlite3_stmt_isexplain sqlite3_index_info.idxStr sqlite3_vtab_collation
src/lib.rs
Outdated
/// Determine if a database is read-only | ||
#[cfg(feature = "modern_sqlite")] // 3.7.11 | ||
#[cfg_attr(docsrs, doc(cfg(feature = "modern_sqlite")))] | ||
pub fn db_readonly(&self, db_name: DatabaseName<'_>) -> Result<bool> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe is_readonly()
is a better name for the public API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right.
src/transaction.rs
Outdated
/// Determine the transaction state of a database | ||
#[cfg(feature = "modern_sqlite")] // 3.37.0 | ||
#[cfg_attr(docsrs, doc(cfg(feature = "modern_sqlite")))] | ||
pub fn txn_state(&self, db_name: Option<crate::DatabaseName<'_>>) -> Result<TransactionState> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe transaction_state
is a better name for the public API?
Could you please tell me how to force github workflow ? |
Huh, weird. Not sure why it's not running. You might be able to make it work by going https://github.com/rusqlite/rusqlite/actions/runs/1988699286 and clicking rerun? |
sqlite3_vtab_distinctsqlite3_vtab_inVTabConfig
modern_sqlite
means >= 3.37.0Fix #598
Also see #639, #1001