NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 114 115 116 117 118 … 159 Next »
Can you Browse the SQLite DataBase?

 
  • 0 Vote(s) - 0 Average
Can you Browse the SQLite DataBase?
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#11
2006-09-12, 01:48 AM
UncleJohnsBand Wrote:Looks like you have to go into an interactive mode to use this tool......

Not so. The articles explains how to use the program within shell scripts. Additionally, sqlite allows a single SQL command to be entered on the command line as a second argument after the database name.
Learning new tricks!
Visit Plain Jane's Collection
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#12
2006-09-14, 12:16 AM
Old Dog Wrote:Not so. The articles explains how to use the program within shell scripts. Additionally, sqlite allows a single SQL command to be entered on the command line as a second argument after the database name.

Yep....you re correct......I see that now.....at the very bottom.....there was too much reading for me to go to the end.....Wink
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#13
2006-09-14, 07:44 AM
I have been too busy lately to dig in and learn the learning curve. SQL Statements just seems to make my eyes glaze over..

What I'm planing on doing is installing a GB-PVR using the MS Access DB, create my forms and queries there, and copy the SQL statements down. Then I was going to pester someone to help me get it into VB6

A while ago, You guys pointed me toward VB.net, and the links discussed here, but I couldn't find any VB6 code snippets.

I may very well slow down on my developing as I'm changing jobs, and will have less time surfing and coding...

Oh well...

One specific question I have is: What I've seen seems to be something like, open DB, access record, change record, save record, save DB. That would appear that a query doesn't access the sqlite DB directly, but rather a temp file, and then writes the temp file out after.

That seems that there isn't actually sharing of the data.

Is that correct?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#14
2006-09-14, 08:51 AM
I just checked out this site...

http://msdn.microsoft.com/vbrun/vbfusion...qlexpress/

It allows for installing their SQL express, and still let you hook in with VB6. I wonder if after I write something that works with the SQL Express, how difficult would it be to change the datasource to GB-PVR's SQLite database?
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
UncleJohnsBand
Offline

Posting Freak

U.S.A.
Posts: 5,643
Threads: 258
Joined: Feb 2005
#15
2006-09-15, 04:46 PM
zehd Wrote:I have been too busy lately to dig in and learn the learning curve. SQL Statements just seems to make my eyes glaze over..

What I'm planing on doing is installing a GB-PVR using the MS Access DB, create my forms and queries there, and copy the SQL statements down. Then I was going to pester someone to help me get it into VB6

A while ago, You guys pointed me toward VB.net, and the links discussed here, but I couldn't find any VB6 code snippets.

I may very well slow down on my developing as I'm changing jobs, and will have less time surfing and coding...

Oh well...

One specific question I have is: What I've seen seems to be something like, open DB, access record, change record, save record, save DB. That would appear that a query doesn't access the sqlite DB directly, but rather a temp file, and then writes the temp file out after.

That seems that there isn't actually sharing of the data.

Is that correct?

I know that the SQL statments are not 100% compatable between Access and SQLite.
Intel Core i7 @ 4.00GHz Skylake 14nm
ASUSTeK COMPUTER INC. Z170-DELUXE
Windows 10 Pro x64
PVR Software: NPVR 5.1.1
SiliconDust HDHomeRun HDHR5-4US Connect Quatro 4 Channel Tuner
Roku Ultra
2 PCH A-100's
Pioneer4x4
Offline

Posting Freak

Posts: 926
Threads: 50
Joined: Jan 2005
#16
2006-09-15, 09:14 PM
I think I have everything working the way "I" like.

I have this in my "PostUpdateEPG.bat"
sqlite3 gbpvr.db3 <testupdate.sql


And this is the contents of "testupdate.sql"

UPDATE PROGRAMME
SET sub_title=SUBSTR(unique_identifier,-4,4)||' - '||sub_title WHERE (SUBSTR(sub_title,1,1)>"9" OR sub_title='') AND unique_identifier <"F";

What it does is:
changes the sub_title (episode name) field to start with the last 4 digits of the unique_identifier only if it is an "Episode" not "Show" or "Movie" or "Sports" and only if it doesn't already start with a number.

Then Turkey's File Renaming Utility: AddEpisode will rename the .mpg to filename with sortable episode number and name.
3x MVPs (not used anymore)
XBMC
Hauppauge 150 via SVideo
Comcast Digital Cable
Motorola HD Cable box channel changed via Firewire
Vista Home Premium with RDP hack
AMD Athalon 64 5000+
340gig sata, plus 80SATA+3x160IDE Drives in XP machine for storage.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  sqlite database modifications skippy_nz 19 5,980 2009-04-09, 03:52 AM
Last Post: wtg
  Browse and play recordings on PS3 rbelisle 2 2,956 2008-11-20, 06:54 PM
Last Post: rbelisle
  SQLite manager plugin for firefox martint123 1 2,034 2008-03-13, 04:14 AM
Last Post: JavaWiz
  SQLite Expert Personal and AVG Free ACTCMS 1 1,856 2007-12-01, 09:11 PM
Last Post: martint123
  SQLite with VB .Net taz 3 2,510 2007-11-07, 08:45 PM
Last Post: saintjo
  Jumping out of GB-PVR to browse the web - all via the remote control? joche 6 2,195 2007-02-09, 08:26 PM
Last Post: joche
  2 PVR's one database for recordings? xmorph 3 1,682 2007-01-14, 10:30 PM
Last Post: dvasco
  SQLite DB editor bgowland 3 2,242 2006-05-20, 09:29 PM
Last Post: ubu
  MovieTrack - a handy little movie database groover km 5 2,798 2005-08-24, 08:13 AM
Last Post: stefan
  music video/single database ? reven 1 1,807 2005-06-04, 03:32 PM
Last Post: ydekmekji

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode