I am wondering if there is a way of treating a network stream as a file. I might be wrong but I see a file as an array list of bytes. when you open a file in windows and you write to it you are inserting bytes to that file (array list) I believe.
I am creating a program where I deploy it with a SQLite database. I am also creating the client version where it connects to that database file on the network.
In order for the users to connect to the database file they need to provide the credentials in order to access data in that database. I will like to make them able to connect without having to input that information.
Things that I been thinking:
deploy my application with sql server instead. (It is not easy to deploy an application with SQL server where it silently will install the server, enable tcp connections, and all the necessary config to make this happen. Also it takes about 7 minutes to install where sqlite takes less than 20 seconds!
I am using WCF to talk to the server so I could make a function for each of all the queries that I plan on using. So if I want to select * from products I can then call the method SelectAllFromProducts() on the WCF service... (Here I am kind of reinventing the wheel. ) Also the nice thing about this would be that my queries will be much faster I belive. Sqlite is serverless so if you plan on finding all items in product where product name is like 'foo' then if you think about it a computer will have to access all records in the database through the network. It will be faster if the local computer does that and sends the few results to the client.