Skip to content

Use C string literal for database name#1596

Merged
gwenn merged 3 commits into
rusqlite:masterfrom
gwenn:db_name
Nov 10, 2024
Merged

Use C string literal for database name#1596
gwenn merged 3 commits into
rusqlite:masterfrom
gwenn:db_name

Conversation

@gwenn

@gwenn gwenn commented Nov 10, 2024

Copy link
Copy Markdown
Collaborator

No alloc for "main" and "temp".
No alloc possible when the attached database name is known at compile time / a C string literal can be usd.
No alloc when the database name is given by SQLite (sqlite3_wal_hook).

No alloc for "main" and "temp".
No alloc possible when the attached database name is known at compile time / a C
string literal can be usd.
No alloc when the database name is given by SQLite (`sqlite3_wal_hook`).
@codecov

codecov Bot commented Nov 10, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.

Project coverage is 85.89%. Comparing base (0af8bfc) to head (9f91945).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/lib.rs 69.23% 4 Missing ⚠️
src/pragma.rs 0.00% 1 Missing ⚠️
src/session.rs 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1596      +/-   ##
==========================================
- Coverage   85.91%   85.89%   -0.03%     
==========================================
  Files          58       58              
  Lines       10814    10816       +2     
==========================================
- Hits         9291     9290       -1     
- Misses       1523     1526       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gwenn gwenn merged commit 63cd7f8 into rusqlite:master Nov 10, 2024
@gwenn gwenn deleted the db_name branch November 10, 2024 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant