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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          71 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          143 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          76 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          47 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          51 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X