rubymotion-community / motion-sqlite3 Goto Github PK
View Code? Open in Web Editor NEWA minimal wrapper over the SQLite 3 C API for RubyMotion
License: MIT License
A minimal wrapper over the SQLite 3 C API for RubyMotion
License: MIT License
At the moment the project is missing a license file (though the gemspec specifies MIT)…
There's a link error on Big Sur, where /usr/lib/libsqlite3.dylib
does not exist.
Reference: https://motioneers.slack.com/archives/C055RDLS0/p1605792055265800
Hi again,
I've run into a problem with SQLite FTS. It is not returning all the column data from the search result. Failing test case here: https://github.com/jviney/motion-sqlite3/commit/8eb7e214d7db6de43ed2ecbbca7029ef091f51a3
Running iOS 7 which has SQLite 3.7.13. This code works as expected with Ruby 2.0, SQLite 3.7.13, and sqlite3 gem version 1.3.8.
Any idea why the value for col_2
is not returned in the second row?
Cheers.
any idea how to make it work on android or some alternative?
Hi,
I've just started with RubyMotion and your sqlite3 driver was working great. But after upgrading RubyMotion to 2.22 (from 2.18),
Build ./build/iPhoneSimulator-7.0-Development
Compile /Users/jviney/Work/rm/nzf-1/vendor/bundle/ruby/2.0.0/gems/motion-sqlite3-0.5.0/lib/motion-sqlite3/version.rb
Compile /Users/jviney/Work/rm/nzf-1/vendor/bundle/ruby/2.0.0/gems/motion-sqlite3-0.5.0/lib/motion-sqlite3/result_set.rb
Compile /Users/jviney/Work/rm/nzf-1/vendor/bundle/ruby/2.0.0/gems/motion-sqlite3-0.5.0/lib/motion-sqlite3/error.rb
Compile /Users/jviney/Work/rm/nzf-1/vendor/bundle/ruby/2.0.0/gems/motion-sqlite3-0.5.0/lib/motion-sqlite3/statement.rb
2014-02-06 18:46:15.936 ruby[43808:d0f] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x62c1af0 {NSLocalizedDescription=zero length data}
2014-02-06 18:46:15.941 ruby[43807:d0f] can't open BridgeSupport full file at path `build/sqlite3.bridgesupport': Error Domain=NSXMLParserErrorDomain Code=4 "zero length data" UserInfo=0x5d0aed0 {NSLocalizedDescription=zero length data}
r
The bizarre thing is that if I create a new RubyMotion project and copy the application code in, it works fine.
Any idea what's causing this error?
P.S. Thanks for writing this library!
Getting this error:
<Error>: *** Terminating app due to uncaught exception 'SQLite3::SQLite3Error', reason: 'unable to open database file (SQLite3::SQLite3Error)
This error only appears on the device and not on the simulator. All of the DB access is done via the main thread only from a single instance of the Database class.
Database path: File.join(App.resources_path, "offline_store.sqlite3")
± |remove-logging ✗| → rake spec
Build ./build/iPhoneSimulator-6.1-Development
Build vendor/sqlite3
/Applications/Xcode.app/Contents/Developer/usr/bin/ranlib: file: libsqlite3.a(dummy.m.o) has no symbols
/Applications/Xcode.app/Contents/Developer/usr/bin/ranlib: warning for library: libsqlite3.a the table of contents is empty (no object file members in the library define global symbols)
Compile /Users/mrickert/Dropbox/Rickert/motion-sqlite3/lib/motion-sqlite3/database.rb
Link ./build/iPhoneSimulator-6.1-Development/motion-sqlite3_spec.app/motion-sqlite3
Create ./build/iPhoneSimulator-6.1-Development/motion-sqlite3_spec.dSYM
Simulate ./build/iPhoneSimulator-6.1-Development/motion-sqlite3_spec.app
Hey matt,
Love the gem!
There seem to be a conflict with Apple's ServiceManagement framework. After adding motion-sqlite3 gem to my project, the SMLoginItemSetEnabled
function is no longer accessible:
app_delegate.rb:3:in `applicationDidFinishLaunching:': undefined method `SMLoginItemSetEnabled' for #<AppDelegate:0x7ffc7072fea0> (NoMethodError)
Any ideas why this could be? I'm about to release an awesome app that uses motion-sqlite3 👍
Cheers Jonas
Is there any way to do this effectively without using SELECT MAX(id)
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.