[Gambas-user] sqlite connectin absolute path doe snto work!?

2017-07-27 Thread PICCORO McKAY Lenz
if i used absolute path in con.host or con.name without define the other (by example, define con.name but not con.host) datbase connection does not opened for slite3 documentation said that only need to define one of those Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread PICCORO McKAY Lenz
umm interesting, great tobias, thanks... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 16:17 GMT-04:00 Tobias Boege : > On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > > its there some code to get BEFORE send the query the fields of the table? > > > > i mean, in the f

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread Tobias Boege
On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > its there some code to get BEFORE send the query the fields of the table? > > i mean, in the following code example i already know the column name, but i > need firts detect column name to send amount of filters > > sCriteria *=* "id = &1"iParamete

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread PICCORO McKAY Lenz
yeah--- that i was done.. as you confirmed.. its the only solution due mysql has the DESCRIBE command, but sqlite need to search in master table... thanks Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 15:47 GMT-04:00 : > Maybe a previous query like: > > SELECT TOP

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread d4t4full
Maybe a previous query like:   SELECT TOP 1 * FROM would help with the FOR EACH loop. Don't really know your case though. Regards, zxMarce On Jun 16, 2017, 16:40, at 16:40, PICCORO McKAY Lenz wrote: >2017-06-16 15:04 GMT-04:00 ML : > >> Does this help? >> >> Dim fld as Field >> For Each

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread PICCORO McKAY Lenz
2017-06-16 15:04 GMT-04:00 ML : > Does this help? > > Dim fld as Field > For Each fld In Result.Fields > ... do whatever with field names > Next > err zxMarce.. that need a previous query... and i need the filed BEFORE made the query jajajaj quite strange but that its! > > zxMarce > >

Re: [Gambas-user] sqlite gambas table info?

2017-06-16 Thread ML
On 16/06/17 14:48, PICCORO McKAY Lenz wrote: > its there some code to get BEFORE send the query the fields of the table? > > i mean, in the following code example i already know the column name, but i > need firts detect column name to send amount of filters > > sCriteria *=* "id = &1"iParameter *=

[Gambas-user] sqlite gambas table info?

2017-06-16 Thread PICCORO McKAY Lenz
its there some code to get BEFORE send the query the fields of the table? i mean, in the following code example i already know the column name, but i need firts detect column name to send amount of filters sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as "SELECT * FROM tblDEFAU

Re: [Gambas-user] SQLite - in memory DB

2016-07-26 Thread Vinode Singh Ujlain
I am able to attach a file based SQLite database to in-memory DB and copy entire database (all tables sequentially using create table + select * from..) into in-memory DB.How do I do the reverse ? i.e dump in-memory DB onto a file based sqlite DB by attaching the memory based DB to file based DB ?

Re: [Gambas-user] SQLite - in memory DB

2016-06-20 Thread Benoît Minisini
Le 20/06/2016 04:07, adamn...@gmail.com a écrit : > > hmm, that contradicts with > http://gambaswiki.org/wiki/comp/gb.db/connection/name > > Huh, this is a bug in the documentation. :-/ I fix that... -- Benoît Minisini ---

Re: [Gambas-user] SQLite - in memory DB

2016-06-19 Thread adamn...@gmail.com
On Mon, 20 Jun 2016 02:25:18 +0200 Benoît Minisini wrote: > Le 20/06/2016 01:17, zainudin ahmad a écrit : > > I can't use it too (attach pic), it's bug ? (attach project) > > > > On Sun, Jun 19, 2016 at 5:57 PM, Vinode Singh Ujlain > > wrote: > > > >> Public conH As New Connection > >> conH.Type

Re: [Gambas-user] SQLite - in memory DB

2016-06-19 Thread Benoît Minisini
Le 20/06/2016 01:17, zainudin ahmad a écrit : > I can't use it too (attach pic), it's bug ? (attach project) > > On Sun, Jun 19, 2016 at 5:57 PM, Vinode Singh Ujlain > wrote: > >> Public conH As New Connection >> conH.Type = "sqlite3" >> conH.name = ":memory:" >>Try conH.Open() >> If Error

Re: [Gambas-user] SQLite - in memory DB

2016-06-19 Thread zainudin ahmad
I can't use it too (attach pic), it's bug ? (attach project) On Sun, Jun 19, 2016 at 5:57 PM, Vinode Singh Ujlain wrote: > Public conH As New Connection > conH.Type = "sqlite3" > conH.name = ":memory:" > Try conH.Open() >If Error Then > Print "Unable to open database \n Error :"; Erro

[Gambas-user] SQLite - in memory DB

2016-06-19 Thread Vinode Singh Ujlain
Public conH As New Connection conH.Type = "sqlite3" conH.name = ":memory:" Try conH.Open() If Error Then Print "Unable to open database \n Error :"; Error.Text Error I am getting is :- /Unable to open database // //Error : Unable to locate database `:memory:` in ``/ conH.name

Re: [Gambas-user] Sqlite, Delete field from table

2015-10-19 Thread Johny Provoost
Op 19-10-15 om 17:55 schreef Benoît Minisini: Le 19/10/2015 17:38, Johny Provoost a écrit : Hallo, Is it possible to delete a field in a table from a SQLite database through gambas code? with FMain.tmpSQL = "ALTER TABLE " & FMain.lstTables.Text & " ADD " & FieldNew.txtFieldname.Text & "

Re: [Gambas-user] Sqlite, Delete field from table

2015-10-19 Thread Benoît Minisini
Le 19/10/2015 17:38, Johny Provoost a écrit : > Hallo, > > Is it possible to delete a field in a table from a SQLite database > through gambas code? > > with > FMain.tmpSQL = "ALTER TABLE " & FMain.lstTables.Text & " ADD " & > FieldNew.txtFieldname.Text & " " & FieldNew.cmbFieldType.Text >

[Gambas-user] Sqlite, Delete field from table

2015-10-19 Thread Johny Provoost
Hallo, Is it possible to delete a field in a table from a SQLite database through gambas code? with FMain.tmpSQL = "ALTER TABLE " & FMain.lstTables.Text & " ADD " & FieldNew.txtFieldname.Text & " " & FieldNew.cmbFieldType.Text FMain.openSQL = FMain.$hConnLocl.EXEC(FMain.tmpSQL) I can add

Re: [Gambas-user] SQLite problem, data has not been read

2015-08-20 Thread Ivan Kern
Thanks, you are right , it works now. Regards, Ivan -Ursprüngliche Nachricht- Von: Benoît Minisini [mailto:gam...@users.sourceforge.net] Gesendet: Donnerstag, 20. August 2015 15:33 An: mailing list for gambas users Betreff: Re: [Gambas-user] SQLite problem, data has not been read

Re: [Gambas-user] SQLite problem, data has not been read

2015-08-20 Thread Ivan Kern
Thanks, I'll try tomorrow. Regards, Ivan -Ursprüngliche Nachricht- Von: Benoît Minisini [mailto:gam...@users.sourceforge.net] Gesendet: Donnerstag, 20. August 2015 15:33 An: mailing list for gambas users Betreff: Re: [Gambas-user] SQLite problem, data has not been read >> W

Re: [Gambas-user] SQLite problem, data has not been read

2015-08-20 Thread Benoît Minisini
>> What's wrong exactly? >> > > Ha ok, I see. > The main reason is that you use "STRING" as SQL datatype, which is an unknown SQL datatype. The bug is that the new SQLite driver does not react intelligently. This will be fixed in the next release, but do use standard SQL datatypes if you don't

Re: [Gambas-user] SQLite problem, data has not been read

2015-08-20 Thread Benoît Minisini
Le 20/08/2015 15:23, Benoît Minisini a écrit : > Le 20/08/2015 14:38, Ivan Kern a écrit : >> >> >> Hi, >> >> >> >> >> >> Data read from SQLite database is not possible. >> Result delivers everything possible but not correct data. >> Is it a bug? >> >> I use Gambas3.8 stable. >> >> With earlier vers

Re: [Gambas-user] SQLite problem, data has not been read

2015-08-20 Thread Benoît Minisini
Le 20/08/2015 14:38, Ivan Kern a écrit : > > > Hi, > > > > > > Data read from SQLite database is not possible. > Result delivers everything possible but not correct data. > Is it a bug? > > I use Gambas3.8 stable. > > With earlier versions of Gambas I have no problems. > > This does not work on Ubu

[Gambas-user] SQLite problem, data has not been read

2015-08-20 Thread Ivan Kern
Hi, Data read from SQLite database is not possible. Result delivers everything possible but not correct data. Is it a bug? I use Gambas3.8 stable. With earlier versions of Gambas I have no problems. This does not work on Ubuntu14.04 LTS and on Xubuntu14.04 LTS as well. Project exam

Re: [Gambas-user] SQLite PRAGMA don't seem works any more

2015-01-07 Thread Jorge Carrión
Fine Benoit! That's efficiency Regards 2015-01-07 0:11 GMT+01:00 Benoît Minisini : > Le 06/01/2015 19:28, Jorge Carrión a écrit : > > I've tested "PRAGMA foreign_keys=ON" and it works fine... > > > > I can live without "PRAGMA fields_info". > > Gambas rules!! > > > > Regards > > > > "PRAGMA" and

Re: [Gambas-user] SQLite PRAGMA don't seem works any more

2015-01-06 Thread Benoît Minisini
Le 06/01/2015 19:28, Jorge Carrión a écrit : > I've tested "PRAGMA foreign_keys=ON" and it works fine... > > I can live without "PRAGMA fields_info". > Gambas rules!! > > Regards > "PRAGMA" and "WITH" are now supported in the gb.db.sqlite3 component, as well as in the IDE database editor. Check r

Re: [Gambas-user] SQLite PRAGMA don't seem works any more

2015-01-06 Thread Jorge Carrión
I've tested "PRAGMA foreign_keys=ON" and it works fine... I can live without "PRAGMA fields_info". Gambas rules!! Regards 2015-01-06 19:16 GMT+01:00 Jorge Carrión : > >As for the use of PRAGMA, it never worked before. > > But it did! I had a application that uses to PRAGMA sentences: the PRAGMA

Re: [Gambas-user] SQLite PRAGMA don't seem works any more

2015-01-06 Thread Jorge Carrión
>As for the use of PRAGMA, it never worked before. But it did! I had a application that uses to PRAGMA sentences: the PRAGMA table_info and the PRAGMA Foreign_keys = ON. I tested it time ago, don't know how much time or wich version of gambas or SQLite, sorry, but it worked... (perhaps Gambas2...)

Re: [Gambas-user] SQLite PRAGMA don't seem works any more

2015-01-06 Thread Benoît Minisini
Le 06/01/2015 17:29, Jorge Carrión a écrit : > I find the old code that shows the slowly of database objects in loops. > Just trying to get de length of all fields of all tables in a database: > > For Each tbl In hc.Tables > Print tbl.Name > For Each fld In tbl.fields >

Re: [Gambas-user] SQLite PRAGMA don't seem works any more

2015-01-06 Thread Jorge Carrión
>I'm curious about how you wrote your loop... I'll try to find the old code where I did those loops. I think I should have a sample in some old backup. >No idea. When you use "Exec", the request is directly sent to the >database client library. What does not work? That instruction exctact from d

Re: [Gambas-user] SQLite PRAGMA don't seem works any more

2015-01-06 Thread Benoît Minisini
Le 06/01/2015 14:20, Jorge Carrión a écrit : > Hi > I used to use this sentence in SQLite databases in order to obtain fields > information > > > rs = hc.exec("PRAGMA table_info(`" & mytablename & "`)") > > It worked fine. I used it because the slow of gambas database objects when > are used in loo

[Gambas-user] SQLite PRAGMA don't seem works any more

2015-01-06 Thread Jorge Carrión
Hi I used to use this sentence in SQLite databases in order to obtain fields information rs = hc.exec("PRAGMA table_info(`" & mytablename & "`)") It worked fine. I used it because the slow of gambas database objects when are used in loops. I haven't used it since a don't-know-how-much time and

Re: [Gambas-user] sqlite database inside an executable

2012-06-01 Thread Benoît Minisini
Le 29/05/2012 07:43, Bruce a écrit : > Is there any way to access (read-only of course) an sqlite database > inside the gambas executable? > > Strange idea I know, but I've got this "really good idea". > > Bruce > At program startup, you must copy the sqlite file from the executable (with COPY) t

Re: [Gambas-user] sqlite database inside an executable

2012-05-30 Thread Rolf Schmidt
Hi Bruce, what about to cat the database-file at the end of an executable and strip it later (perhaps with cut) and store it, where you like. Another methode could be, study the C-code of the sqlite-libs and see, if you can open the database with an offset - i.e. the data will begin at the end

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Bruce
On Wed, 2012-05-30 at 01:38 +0200, Emil Lenngren wrote: > If you only use the database file as a container for help files, isn't it > possible to store the help files directly under a directory structure > (which can be packed in the executable) or something, instead of having a > database? > > /E

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Bruce
On Tue, 2012-05-29 at 16:19 -0700, Randall Morgan wrote: > As I understand Sqlite, the database is file based, and the file path can > be passed to the open/connect method. So what is to keep you from putting > the db file in the data directory of the application? That's where it is (and that's w

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Emil Lenngren
If you only use the database file as a container for help files, isn't it possible to store the help files directly under a directory structure (which can be packed in the executable) or something, instead of having a database? /Emil 2012/5/30 Randall Morgan > As I understand Sqlite, the databa

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Randall Morgan
As I understand Sqlite, the database is file based, and the file path can be passed to the open/connect method. So what is to keep you from putting the db file in the data directory of the application? I'll admit I have not used Sqlite in four or five years. I mostly use MySQL and MS SQL. Which are

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Bruce
On Tue, 2012-05-29 at 12:17 -0700, Randall Morgan wrote: > Can you explain in a little more detail what you want to do? > > > > On Mon, May 28, 2012 at 10:43 PM, Bruce wrote: > > > Is there any way to access (read-only of course) an sqlite database > > inside the gambas executable? > > > > Str

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Randall Morgan
Can you explain in a little more detail what you want to do? On Mon, May 28, 2012 at 10:43 PM, Bruce wrote: > Is there any way to access (read-only of course) an sqlite database > inside the gambas executable? > > Strange idea I know, but I've got this "really good idea". > > Bruce > > > > ---

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread John Spikowski
On Tue, 2012-05-29 at 15:13 +0930, Bruce wrote: > Is there any way to access (read-only of course) an sqlite database > inside the gambas executable? > > Strange idea I know, but I've got this "really good idea". > > Bruce > FireFox uses SQLite to manage their 'cookie' DB. I don't think the OS

Re: [Gambas-user] sqlite database inside an executable

2012-05-29 Thread Jussi Lahtinen
I suppose it is possible, but not easy. Unless you copy database out from executable to access it. But what's the point then... or anyway..? Jussi On 29 May 2012 08:43, Bruce wrote: > Is there any way to access (read-only of course) an sqlite database > inside the gambas executable? > > Stran

[Gambas-user] sqlite database inside an executable

2012-05-28 Thread Bruce
Is there any way to access (read-only of course) an sqlite database inside the gambas executable? Strange idea I know, but I've got this "really good idea". Bruce -- Live Security Virtual Conference Exclusive live event

Re: [Gambas-user] SQLite memory database

2010-11-03 Thread tobias
tobias schrieb: > good evening, > i have a more sqlite related question: > what does it mean in the doc: For SQLite, you can also create and use a > database in memory by giving as database name the string ":memory:". > (from gambas2 doc, gb.db.connection.name) > > what is creating a database in

[Gambas-user] SQLite memory database

2010-11-03 Thread tobias
good evening, i have a more sqlite related question: what does it mean in the doc: For SQLite, you can also create and use a database in memory by giving as database name the string ":memory:". (from gambas2 doc, gb.db.connection.name) what is creating a database in memory?? simply a temporary d

Re: [Gambas-user] SQLite Driver

2010-11-03 Thread Fabien Bodard
it say just that the sqlite3 driver can manage sqlite 2 database ... so ..; select sqlite3 :) 2010/11/2 tobias : > good evening, > i have a simple question. > in the doc it is said that "The SQLite driver supports the version 3 of > SQLite, and falls back to the version 2 driver if needed. See > w

[Gambas-user] SQLite Driver

2010-11-02 Thread tobias
good evening, i have a simple question. in the doc it is said that "The SQLite driver supports the version 3 of SQLite, and falls back to the version 2 driver if needed. See www.sqlite.org for more information. " first, i can't find these "more information"... and i what could be reasons for the

Re: [Gambas-user] SQLite 3 and Gambas 2.20

2010-10-04 Thread Benoît Minisini
> Hi everyone, > I have recently discovered Gambas and am using it on a PCLinuxOS 2010 > distribution. > I have used SQLite databases under VB and RealBasic but am kindof > stumped with SQLite3. > I am writing a Ham radio Logger App and I need to check the DB tables > etc on loading the App. > >

[Gambas-user] SQLite 3 and Gambas 2.20

2010-10-03 Thread Barnett Winton
Hi everyone, I have recently discovered Gambas and am using it on a PCLinuxOS 2010 distribution. I have used SQLite databases under VB and RealBasic but am kindof stumped with SQLite3. I am writing a Ham radio Logger App and I need to check the DB tables etc on loading the App. I have been ab

Re: [Gambas-user] Sqlite and Gambas and image blobs

2010-02-07 Thread Matti
Sorry, don't think I can help you here. Matti Am 07.02.2010 20:17, schrieb M. Cs.: > I'm developing the GamCat cataloging program. I'd like to add possibilities > to scan CD/DVDs and to create thumbnail images, which would be stored in a > database file, and the user could optionaly see the thumbn

Re: [Gambas-user] Sqlite and Gambas and image blobs

2010-02-07 Thread M. Cs.
I'm developing the GamCat cataloging program. I'd like to add possibilities to scan CD/DVDs and to create thumbnail images, which would be stored in a database file, and the user could optionaly see the thumbnails of the pictures in a TreeView , which would visually display the content of the archi

Re: [Gambas-user] Sqlite and Gambas and image blobs

2010-02-07 Thread Matti
Hi M. Cs., I'm not really sure what you want. Is it: the user chooses a picture directory, and you want to display the thumbnails of the pictures? In PictureBoxes, or frames containing PictureBoxes? Then you wouldn't need any database, and I could help you. Did this with just an array of file na

[Gambas-user] Sqlite and Gambas and image blobs

2010-02-05 Thread M. Cs.
Hi, I'd like to know how can I store image thumbnails (~10 KByte each) inside the sqlite database using Gambas. I'd like to use the stored thumbs as preview images, so I'd have to know how to read the blob data out of database and use it as a content of a Picture container. Once more: CREATE TABLE

[Gambas-user] SQLite with GridEditor

2009-05-29 Thread Jason Hackney
Anybody using these two together? I made an ultra-simple SQLite database to help me pick through and learn what GridEditor does. When I get to: [FTest] with grid ... .open [DBGridEditor & DBConnection] I get "Query Failed: SQL error or missing database." and it doesn't occur until $conn.Roll

Re: [Gambas-user] sqlite integer to text string problem

2009-05-08 Thread Benoît Minisini
> Greetings > I have a problem - I can query a sqlite database using > > SELECT ssym,sclose FROM shistory where (sdate='2009-05-06') and sclose<.75 > and sclose > .1 order by ssym,sdate; > > and receive the following output: > AAC|0.24 > AAME|0.64 > AAU|0.61 > ABMC|0.16 > ABTL|0.5 > ACLS|0.47

Re: [Gambas-user] sqlite integer to text string problem

2009-05-08 Thread charlesg
Hi, SQLite is a bit unusual. As the FAQ at www.sqlite.org says, the field type is is one of expectation rather than definition (with the exception of an integer primary key). This is demonstrated in your example where you have put real numbers (0.64) into an integer field. SQLite doesn't care: it

[Gambas-user] sqlite integer to text string problem

2009-05-07 Thread Ivan Williams
Greetings I have a problem - I can query a sqlite database using SELECT ssym,sclose FROM shistory where (sdate='2009-05-06') and sclose<.75 and sclose > .1 order by ssym,sdate; and receive the following output: AAC|0.24 AAME|0.64 AAU|0.61 ABMC|0.16 ABTL|0.5 ACLS|0.47 but when I do the sa

Re: [Gambas-user] SQLite and INT4 vs. INTEGER

2008-12-22 Thread moon_walker
Thank you for your answer. Meantime i realised the autoincrementation for INT4 "manually" in my project. Because i am a novice developer I learned a lot with this trouble at least. :-) br attila moon_walker wrote: > > Hi Benoit, > > i am developing a cross platform application. The linux side

Re: [Gambas-user] SQLite and INT4 vs. INTEGER

2008-12-20 Thread Benoit Minisini
On mardi 16 décembre 2008, moon_walker wrote: > Hi Benoit, > > i am developing a cross platform application. The linux side is on GAMBAS > and the Win side is on > C#.NET. The common part is the SQLite database. > > There is some foreign relations which are coupled with comboboxes. > So the child t

[Gambas-user] SQLite and INT4 vs. INTEGER

2008-12-16 Thread moon_walker
Hi Benoit, i am developing a cross platform application. The linux side is on GAMBAS and the Win side is on C#.NET. The common part is the SQLite database. There is some foreign relations which are coupled with comboboxes. So the child table has some foreign key fields joined to parent primary k

Re: [Gambas-user] sqlite

2008-06-10 Thread Kari Laine
Benoit Minisini kirjoitti: >> > > The sqlite2 component is independent of the sqlite3 component. The two shared > libraries they are based on are different: libsqlite.so & libsqlite3.so. > > So this is not a problem if you cannot compile the sqlite2 component. This > component may even be remov

Re: [Gambas-user] sqlite

2008-06-10 Thread Benoit Minisini
On mardi 10 juin 2008, Kari Laine wrote: > Hi, > > Now I have had almost all the modules to compile in the Gambas. sqlite2 > is stilling giving me problems. From their web-site there is only > available version 3.5.9. I compiled this and still gambas is not happy > because the sqlite.h has changed

[Gambas-user] sqlite

2008-06-10 Thread Kari Laine
Hi, Now I have had almost all the modules to compile in the Gambas. sqlite2 is stilling giving me problems. From their web-site there is only available version 3.5.9. I compiled this and still gambas is not happy because the sqlite.h has changed to sqlite3.h and lisqlite.so has changed to libs