in

System.Data.SQLite

An open-source, enhanced version of the SQLite database engine for Windows

Sample Code

Last post 03-30-2007 8:45 AM by Robert Simpson. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 11-21-2005 8:19 AM

    Sample Code

    Locked Reply Contact
    After some thought, I decided that rather than do some really rudimentary tutorial code that demonstrates the simplest of SQL, my time would be better spent hitting on some of the more advanced topics and features of SQLite.  Here are some of the samples I hope to complete in the coming days: 
    1. Creating a new SQLite database file
    2. Enabling NTFS file compression on a database file
    3. Enabling NTFS encrypted file system support on a database file (obsolete, see #5)
    4. Writing parameterized queries
    5. Encrypting, decrypting and attaching to encrypted databases
    6. Writing high performance inserts/updates
    7. User-defined scalar, aggregate and collation functions
    8. Attaching multiple databases to a connection (aka "how to read and write simultaneously")
    9. Reclaiming unused space in a database file (vacuum)
    10. Retrieving and interpreting schema information

     

  • 12-02-2005 2:41 PM In reply to

    • Joe
    • Top 500 Contributor
    • Joined on 12-02-2005
    • Posts 1

    Re: Sample Code

    RS,
    Your How To's are very helpful. Thank you for your time.
    Do you know when you're going to be able to write 5 - 9 from your list?
    Alternatively do you know of other good sources for high performance database programing?
     
    Thank you,
    Joe
  • 12-02-2005 2:52 PM In reply to

    Re: Sample Code

    I'll be finishing those up next week if I'm able.  Things are getting a little crazy with the holidays coming up!

    Robert

     

  • 03-21-2006 7:03 AM In reply to

    Re: Sample Code

    Robert,

    great job! it works wery nice and i love the performance.

    I think other people will also agree that it would be great if you can make PDF manual which will come together with installation of ado.net sqlite.

    grtz

    Perica

  • 03-15-2007 4:45 PM In reply to

    Re: Sample Code

    So its been 1 year so far, and I still dont see an example of user defined functions.  This would be extremely helpful for me.  Could you show us a quick example of this?  Whenever I try it I get a no such function.
  • 03-27-2007 9:57 PM In reply to

    • Wiaz
    • Top 10 Contributor
    • Joined on 01-11-2007
    • Poland
    • Posts 47

    Re: Sample Code

    It was easy to find anexample of user function. Here is link to thread about adding regex function to sqlite:
    http://sqlite.phxsoftware.com/forums/thread/1457.aspx
    Wiaz
  • 03-30-2007 8:45 AM In reply to

    Re: Sample Code

    In the source code distribution is a project called Test.  Inside that project is TestCases.cs which contains several examples of user-defined scalar and aggregate functions and collating sequences.

    Robert

     

Page 1 of 1 (7 items)
Powered by Community Server (Commercial Edition), by Telligent Systems