-
Notifications
You must be signed in to change notification settings - Fork 934
How about create a sqlite driver with Microsoft.Data.Sqlite.Core ? #2318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is some discussion about it in #1638, have you seen it? Also check some scattered comments like here and in #847. Speaking of which, #847 is about changing how we handle drivers, for ceasing to handle them all through reflection and having them all in the main library. But it is no more moving for now. Anyway, for the driver to be included, you should first make sure it passes successfully the NHibernate test suite. |
I have done a test with the driver built with
I get the same errors like in #1638 :
And I have done a test with the driver
As discussed in #1638 , the driver from microsoft is incompleted. However, I would like to publish a driver third part extension driver called NHibernate.Extensions.Sqlite. |
A bunch of the errors you have seen may be manageable. A cast trouble could be some db type for which the parameters would require adjustments by overriding Since not all databases have the same abilities, we also have some mechanisms to flag what is unsupported and should not be tested. But it is a bit messy currently. That is done through properties scattered on the driver and dialect base classes to be overridden, and also on NHibernate.Test.TestDialect (see derived classes). Sometimes that is even the driver type or dialect class type which is directly checked by the test case... We may accept a few new unsupported cases with new disabling flags (preferably through For now it is likely this driver is a bit too far from passing the test suite.
As you wish. We do neither monitor, nor complain about, third party extensions. We may be annoyed by some names being taken on NuGet, but we cope with that when that happens. (Usually by tweaking the name of what we were willing to add.) |
Thanks for your advice, I will continue to try when I have time. I publish However, if any the name of the packages wanted by nhibernate, I can transfer the ownership. |
You may have a look at #1662 for an example of how the specific behavior/limitations/... of a database or driver could be handled. (Mind that this one was adding support for a kind of database we were not having. It has more changes than what we may accept for adding just a driver alternative for a database we already support.) |
@beginor -- I am using the dialect and driver provided in the NHibernate.Extensions.Sqlite but the schemaupdate is not working - no new tables or columns are being updated ERROR NHibernate.Tool.hbm2ddl.SchemaUpdate - could not complete schema update |
@PriyankaChandrabose I do not use nhibernate's |
How do you handle the update of the schema without using Thank you :) |
Microsoft.Data.Sqlite.Core is a
.NETStandard 2.0
nuget package, can be used in any .NET platform that supports .NETStandard 2.0, it it provided by microsoft, should be the official sqlite provider for .net.Since NHibernate is a
.NETStandard 2.0
too, so how about create a new a sqlite driver with it?I have create a
MsSqliteDriver
in my nhibernate-extensions repository, the configuration file is hibernate.sqlite.config and the unit test file is MsSqliteDriverTestplease review it, if it is acceptable, I can create a merge request fot it. And if it is not acceptable, I would like to publish a separate nuget package。
The text was updated successfully, but these errors were encountered: