
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Ruby MRI adapter for sqlite3.
NOTE: This has nothing to do with Swift programming language (OSX, iOS)
git submodule update --init
rake
Swift::DB::Sqlite3
.new(options)
#execute(sql, *bind)
#prepare(sql)
#begin(savepoint = nil)
#commit(savepoint = nil)
#rollback(savepoint = nil)
#transaction(savepoint = nil, &block)
#ping
#close
#closed?
#escape(text)
Swift::DB::Sqlite3::Statement
.new(Swift::DB::Sqlite3, sql)
#execute(*bind)
#release
Swift::DB::Sqlite3::Result
#selected_rows
#affected_rows
#fields
#types
#each
#insert_id
require 'swift/db/sqlite3'
db = Swift::DB::Sqlite3.new(db: ':memory:')
db.execute('drop table if exists users')
db.execute('create table users (id integer primary key, name text, age integer, created_at datetime)')
db.execute('insert into users(name, age, created_at) values(?, ?, ?)', 'test', 30, Time.now.utc)
row = db.execute('select * from users').first
p row #=> {:id => 1, :name => 'test', :age => 30, :created_at=> #<Swift::DateTime>}
Don't read too much into it. Each library has its advantages and disadvantages.
# insert 1000 rows and read them back 100 times with typecasting enabled.
$ ruby -v
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
$ ruby check.rb
user system total real
do_sqlite3 insert 0.050000 0.020000 0.070000 ( 0.062814)
do_sqlite3 select 0.720000 0.000000 0.720000 ( 0.723628)
sqlite3 insert 0.040000 0.000000 0.040000 ( 0.046895)
sqlite3 select 4.390000 0.000000 4.390000 ( 4.400678)
swift insert 0.030000 0.000000 0.030000 ( 0.030628)
swift select 0.480000 0.000000 0.480000 ( 0.488608)
MIT
FAQs
Unknown package
We found that swift-db-sqlite3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.