postmodern on Nostr: How do you safely close the sqlite3 database file when using ActiveRecord in a ...
How do you safely close the sqlite3 database file when using ActiveRecord in a Sinatra app? Doling a Ctrl^C results in the sqlite3 lock files being left behind.
#sinatra #activerecord
Published at
2024-05-03 20:08:08Event JSON
{
"id": "61891a88719a4567a8bcc0272cf7c634b9b39d00ea51500890f19f25f4c00cdf",
"pubkey": "ae2c5f0d5767d4845b235502cf6bd6fc541334009c28221ab3d3cb9d9895f437",
"created_at": 1714766888,
"kind": 1,
"tags": [
[
"t",
"sinatra"
],
[
"t",
"activerecord"
],
[
"proxy",
"https://ruby.social/users/postmodern/statuses/112378962778284271",
"activitypub"
]
],
"content": "How do you safely close the sqlite3 database file when using ActiveRecord in a Sinatra app? Doling a Ctrl^C results in the sqlite3 lock files being left behind.\n#sinatra #activerecord",
"sig": "d5656bcdf0ecba3235e273670bcbdd43d7e2eb25cd0f0d44974e7e697fbb1f0e9677921df286950fbd4b74b7475a445320ef53f777c4d2170f22c4aedc9e04e3"
}