File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -131,12 +131,6 @@ struct CreateDatabasePoolOptions {
131
131
async fn create_database_pool ( options : CreateDatabasePoolOptions ) -> Result < sqlx:: AnyPool > {
132
132
let database_url = options. database_url . to_string ( ) ;
133
133
let ( pool_options, pool_max_connections) = if database_url. starts_with ( "sqlite:" ) {
134
- // Workaround for issue with `zig cc -target x86_64-linux-gnu` not working with create_if_missing.
135
- if database_url != "sqlite::memory:" {
136
- if tokio:: fs:: metadata ( options. database_url . path ( ) ) . await . is_err ( ) {
137
- tokio:: fs:: File :: create ( options. database_url . path ( ) ) . await ?;
138
- }
139
- }
140
134
let pool_options = database_url
141
135
. parse :: < sqlx:: sqlite:: SqliteConnectOptions > ( ) ?
142
136
. create_if_missing ( true )
You can’t perform that action at this time.
0 commit comments