Skip to content
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

Draft Feature: Add SQLite #2381

Closed
wants to merge 15 commits into from
Closed

Draft Feature: Add SQLite #2381

wants to merge 15 commits into from

Conversation

networkfusion
Copy link
Member

Description

Motivation and Context

A long time feature request is to add SQLite support. This PR adds the skeleton for such a request and is backed up by the managed layer in https://github.com/networkfusion/nanoFramework.System.Data.SQLite

It still requires a lot more work before it is ready for integration, but hoping there is community contributions towards it!

How Has This Been Tested?

Screenshots

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue with code or algorithm)
  • New feature (non-breaking change which adds functionality to code)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Config and build (change in the configuration and build system, has no impact on code or features)
  • Dev Containers (changes related with Dev Containers, has no impact on code or features)
  • Dependencies (update dependencies and changes associated, has no impact on code or features)
  • Documentation (changes or updates in the documentation, has no impact on code or features)

Checklist

  • My code follows the code style of this project (only if there are changes in source code).
  • My changes require an update to the documentation (there are changes that require the docs website to be updated).
  • I have updated the documentation accordingly (the changes require an update on the docs in this repo).
  • I have read the CONTRIBUTING document.
  • I have tested everything locally and all new and existing tests passed (only if there are changes in source code).

@nfbot nfbot changed the title Draft Feature: Add SQLite. Draft Feature: Add SQLite Jun 27, 2022

struct Library_nf_system_data_sqlite_System_Data_Sqlite_ResultSet
{
static const int FIELD__<RowCount>k__BackingField = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@networkfusion you need to implement the backing fields for these properties.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am quite out of my depth... 😱

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. Let me help : this is on the C# code. You need to add fields to the class to be the backing fields. We can't have auto-properties in nano when the code is used in native.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol... I will have to revisit, as I am starting to count sheep 🤣

shell.c
sqlite3.c
sqlite3.h
sqlite3.ext.h
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why all those files when the cmake only uses 1?

@nfbot nfbot added the invalid label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants