Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread John Stanton
You would be doing radix conversions all the time because you would be mapping the full set of types available in your C (or whatever) program in the limited set of types in Sqlite. Add to that the "manifest typing" where the actual type can differ from the declared type. A compiler has to

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread John Stanton
How about when you have a twos complement integer in your program and Sqlite decides to return a character string? Ken wrote: From the standpoint of data insertions you wouldn't reall need to deal with datatype correctness since sqlite is typeless. John Stanton <[EMAIL PROTECTED]> wrote:

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread Ken
>From the standpoint of data insertions you wouldn't reall need to deal with >datatype correctness since sqlite is typeless. John Stanton <[EMAIL PROTECTED]> wrote: Why would it be a benefit? You would have to be doing type conversions all the time. Ken wrote: > I think the fact that

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread John Stanton
Why would it be a benefit? You would have to be doing type conversions all the time. Ken wrote: I think the fact that sqlite is typeless actually is a benefit. I see what you mean now about connecting to obtain the meta info. Maybe that could be embedded in the code as well for the

RE: [sqlite] Sqlite Preprocessor

2007-01-11 Thread Fred Williams
Or my contempt of code generators in general :-) Fred > -Original Message- > From: Ken [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 11, 2007 12:46 PM > To: sqlite-users@sqlite.org > Subject: Re: [sqlite] Sqlite Preprocessor > > > I think the fact that sql

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread Ken
I think the fact that sqlite is typeless actually is a benefit. I see what you mean now about connecting to obtain the meta info. Maybe that could be embedded in the code as well for the pre-processor. Thanks for your input. Joe Wilson <[EMAIL PROTECTED]> wrote: ...and I was trying to

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread Ken
Yes, but probably simpler and more in the tradition of sqlite. Make it simple and easy to use. John Stanton <[EMAIL PROTECTED]> wrote: Are you proposing an implementation of the existing Embedded SQL standard? Ken wrote: > Yes, a pre processor, but not a wrapper. A wrapper as I've seen from

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread John Stanton
It was one of the poorly thought through concepts which slipped into the ash can of history without mourners. To be reliable such a tool needs to be integrated into the development system so that a change in schema forces a remake of all affected applications. With discipline and the

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread Ken
Joe, yes thats what I'm thinking.. The thing is the amount of code that can be reduced via the preprocessor is enormous. Plus the fact that one could also preprocess into the resulting C code all sorts of wonderful error handling in a very succinct language construct. I hapen to perfer

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread Joe Wilson
> Yes, a pre processor, but not a wrapper. A wrapper as I've seen from the > sqlite.org site is > simply a layer on top of the sqlite3 api. I've written my own wrapper. I'm > really looking to > see if instead of inserting an additional layer, the actual code could be > compiled inline into >

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread John Stanton
Are you proposing an implementation of the existing Embedded SQL standard? Ken wrote: Yes, a pre processor, but not a wrapper. A wrapper as I've seen from the sqlite.org site is simply a layer on top of the sqlite3 api. I've written my own wrapper. I'm really looking to see if instead of

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread Ken
Yes, a pre processor, but not a wrapper. A wrapper as I've seen from the sqlite.org site is simply a layer on top of the sqlite3 api. I've written my own wrapper. I'm really looking to see if instead of inserting an additional layer, the actual code could be compiled inline into the sourcing

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread John Stanton
My understanding is that he is advocating a compiler which would take his definition of an Sqlite operation and generate correct Sqlite3 API calls. An existing wrapper could well satisfy his requirement. Joe Wilson wrote: I not sure what you mean by preprocessor, but if you mean a "stored

Re: [sqlite] Sqlite Preprocessor

2007-01-11 Thread Joe Wilson
I not sure what you mean by preprocessor, but if you mean a "stored procedure language", sqlite does not support an official one within the database itself. There are, however, dozens of bindings to computer languages in addition to the Tcl wrapper that ships with sqlite:

[sqlite] Sqlite Preprocessor

2007-01-11 Thread Ken
Does a preprocessor exist for sqlite and if so where ? If not that might be a really nice project to be able to support syntax as follows: SQLITE_EXEC at :loginhndllogin "dbname.db"; SQLITE_EXEC at :loginhndl declar cursor c1; SQLITE_EXEC at :loginhndl prepare cursor c1 using

[sqlite] Sqlite Preprocessor

2007-01-10 Thread Ken
Does a preprocessor exist for sqlite and if so where ? If not that might be a really nice project to be able to support syntax as follows: SQLITE_EXEC at :loginhndllogin "dbname.db"; SQLITE_EXEC at :loginhndl declar cursor c1; SQLITE_EXEC at :loginhndl prepare cursor c1 using sqlStr;