Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using an in-memory SQLite database possible?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Using an in-memory SQLite database possible?

    Hello,

    I would like to use SQLite as an in-memory database with NinjaTrader. Would that be possible somehow?

    With

    Code:
    using.Microsoft.Data.SQLite;
    I get an error that Microsoft is not in the namespace contained (missing assembly link).

    How can I use an in-memory database?

    Sincerely
    Gerik

    #2
    Hello, thanks for writing in. Using a database like this is not supported, so I will not be able to test it out, unfortunately. Make sure you have the DLL referenced to this Microsoft.Data.SQLite path. Right click the script editor>References, then add the reference to the correct DLL file that contains this class.

    Comment


      #3
      Hello Chris,

      thank you. I could include the reference.

      However, I am struggling with connecting to an sql database that I have already created. Is there any sample code snipped as an example with NinjaScript somewhere available?

      Has anyone tried to use sqlite within NinjaScript?

      Sincerely
      Gerik

      Comment


        #4
        Hi Gerik, unfortunately, this goes outside of the scope of support I am able to provide on the subject.

        Comment


          #5
          Google is your friend.

          Good reading here.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          88 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          134 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          119 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X