Skip to content
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

feat(rust): add the driver exporter #1756

Merged
merged 33 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
41c6d37
Improve documentation
alexandreyc Apr 24, 2024
13bfd29
Add driver exporter
alexandreyc Apr 24, 2024
df85b8b
Update to make driver_exporter module private
alexandreyc Apr 25, 2024
72da2fa
Add exporting dummy driver
alexandreyc Apr 25, 2024
0b7ce0a
Update to use trait instead of function for building ffi driver
alexandreyc Apr 25, 2024
ba10d4c
Update to use `std::ptr::copy_nonoverlapping` instead of `str::ptr::c…
alexandreyc Apr 25, 2024
c248900
Add null checks for `copy_string` and `copy_bytes`
alexandreyc Apr 25, 2024
580bad0
Update `release_ffi_driver` to return error when double releasing
alexandreyc Apr 25, 2024
3376c76
Remove useless bounds on exported types
alexandreyc Apr 25, 2024
77ccb7b
Update `ExportedDatabase` and `ExportedConnection` to enums
alexandreyc Apr 25, 2024
6eccba3
Add safety comments to `copy_bytes` and `copy_string`
alexandreyc Apr 25, 2024
7348489
Update `copy_string` to improve length calculation
alexandreyc Apr 25, 2024
d5c034f
Update to avoid panicking in `check_err`
alexandreyc Apr 25, 2024
b7e01e9
Improve documentation for init function naming
alexandreyc Apr 25, 2024
dee721f
Improve documentation of `export_driver` macro
alexandreyc Apr 25, 2024
97f4e4b
Update `ExportedStatement` to tuple struct
alexandreyc Apr 25, 2024
205c520
Remove useless bound on `Default`
alexandreyc Apr 29, 2024
ee28dc0
Fix docstring for `ExportedDatabase` and `ExportedConnection`
alexandreyc Apr 29, 2024
9bdf248
Rename `connection_or_panic` to `unwrap_connection`
alexandreyc Apr 29, 2024
e5fb86a
Update to use `check_not_null` in `export_driver`
alexandreyc Apr 29, 2024
0441b94
Improve `release_ffi_driver`
alexandreyc Apr 29, 2024
6420b4e
Improve error handling for driver version
alexandreyc Apr 29, 2024
91b8b76
Improve error messages for option getters and add null checks
alexandreyc Apr 29, 2024
f6542a5
Add null checks to set_option_impl functions
alexandreyc Apr 29, 2024
bdb8c7e
Minor fix
alexandreyc Apr 29, 2024
55066eb
Update `*_privata_data` functions to panic on null pointers
alexandreyc Apr 30, 2024
2d222b2
Add missing null check
alexandreyc Apr 30, 2024
07f3961
Add `maybe_str` to avoid repeating pattern
alexandreyc Apr 30, 2024
503906f
Add comment around iterating over table types
alexandreyc Apr 30, 2024
039ec04
Add missing null check in `error_get_detail`
alexandreyc Apr 30, 2024
4446049
Update to handle object double release
alexandreyc Apr 30, 2024
e1bddd2
Update to return error instead of panicking when API is misused
alexandreyc Apr 30, 2024
4d6f11d
Update `OptionValue::get_type` to `pub(crate)`
alexandreyc Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading