Try googling for "scala" and "sqlite". You don't come up with much. How are people interfacing with SQLite using Scala?
I didn't like the Java wrappers, so I wrote a new one in Scala. Very alpha. But maybe useful:
http://github.com/srhea/scalaqlite
Since Scala runs on the JVM, it's possible to use Java libraries from Scala. So one option is to use a Java library. There are some listed on the SqliteWrappers page on the SQLite wiki.
Related
We are trying to implement a Hybrid approach for PACT-provider for Scala.
We're looking for a simple example of Pact-JVM-provider side implementation using PACT-JVM (Java variant)
We've the project code-base in Scala, but would like to try Pact JVM (Java variant) on top of it for Pact testing (Provider-side). I tried searching the sample for this hybrid approach but couldn't find one, so asking around for help.
Does anyone has a sample git repo of simple implementation?
Thanks a lot
I was not able to find exact matching solution, fulfilling the requirement of Scala code base & PACT tests written in JAVA.
Whereas, below referred two solutions goes somewhat closer, to what we're looking for:
https://github.com/pact-foundation/pact-jvm/tree/master/provider/specs2
https://github.com/pact-foundation/pact-jvm/tree/master/provider/scalatest
I'm having trouble getting a overview of the different SQLite libraries to be used with .Net Core and/or Standard.
It seems there are primarily two:
MS: Microsoft.EntityFrameworkCore.Sqlite
sqlite.org: System.Data.SQLite
Is the MS library completely independent of the sqlite.org's libraries? And if so, which one is recommended to use?
I prefer simplicity....it seems I just need two dll's if using sqlite.org.
There are two main SQLite packages for .NET Core/Standard. They are independent and use separate native binaries.
Microsoft.Data.Sqlite
System.Data.SQLite
The former is provided by Microsoft, the latter by SQLite.org. I prefer the Microsoft one but unless you're looking for specific functionality (SQLite.org's supports encryption, Microsoft's supports fts5, etc) either one will probably work fine. They both implement System.Data.Common and so the APIs are almost identical. SQLite.org's can load arbitrary extensions which Microsoft's cannot (though with the latest release it was looking like SQLite.org's couldn't load fts5 which I know worked with previous releases).
I would recommend using Entity Framework Core or another similar third-party database abstraction package unless you absolutely can't use modelling for some reason (EFCore still lets you run the occasional low level query if you need to). It's quicker to develop, and easier to maintain the code.
Microsoft.EntityFrameworkCore.Sqlite provides support for Sqlite in EFCore, using Microsoft.Data.Sqlite. So you would want to use that in this case. The internet says you can also use System.Data.SQLite but it looks like Microsoft.EntityFrameworkCore.Sqlite still tries to load the underlying native binary from Microsoft.Data.Sqlite for some purpose, though it does appear to use System.Data.SQLite for the actual database operations. Not sure exactly what's going on there.
Microsoft.EntityFrameworkCore.Sqlite is for Entity Framework Core ORM is more complete but heavier.
The System.Data.SQLite.Core can use with Dapper ORM SQLite and Dapper but I use the Microsoft.Data.Sqlite.Core with SQLitePCLRaw.bundle_e_sqlite3 and Dapper ORM, I think I had problems with System.Data.SQLite.Core.
Use without is hard and I not recommend.
Is there an option to calculate SHA3-256 hashes in .NET Core? The goal is to recreate the isChecksumAddress util function in web3.js
No, there is no way of doing that now with pure dotnet core.
It's been on the watch list since it was announced. Since we don't implement cryptographic algorithms within .NET we're waiting on support from the underlying platforms (Windows CNG, Apple Security.framework, and OpenSSL).
See this issue.
But you might have a better luck with BouncyCastle. It has an implementation here but I don't know if it is out yet (in nuget).
FIPS-202 SHA3-256 (and all other SHA3 variants, e.g. SHA3-512, SHA3-SHAKE256) are implemented here, in pure .NET, with no dependencies on external APIs like BouncyCastle.
GitHub
https://github.com/series0ne/CORE/tree/master/Core/Security/Cryptography
Nuget
https://www.nuget.org/packages/SeriesOne.Core/
You can use SHA3.Net that is a SHA3 wrapper of the BouncyCastle implementation, implementing System.Security.Cryptography.HashAlgorithm
https://www.nuget.org/packages/SHA3.Net/
What is currently the main C/C++ library to use BCrypt?
Does OpenSSL really not support bcrypt? I haven't found anything for it in its crypto library.
Well, I found this C wrapper over the Openwall's implementation:
https://github.com/rg3/bcrypt
It's supposed to make it easier to use it.
Is it possibly to use the Qt toolkit with Julia?
I've read that Julia supports calling c and python functions. How would I go about using pyqt/pyside or c's Qt bindings from within Julia?
The most stable option right now is to call PySide via Python, for which there is already a meta-wrapper with some helpful functions (event loop integration, etc.).
Longer-term, there is a C++ FFI under development, and it has a very minimal demo of calling Qt directly from Julia. If you are feeling adventurous, this could be something to look at, but understand that it is still pre-release software so be prepared to file bugs and don't be surprised if some features are not available yet.