Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28
  1. #1
    Join Date
    May 2006
    Posts
    1,443

    SQLite3 Action Plugin (free)

    SQLite3 Action Plugin for AutoPlay Media Studio

    This is A Lua module that Orginally written for Lua
    This module is ported to an AMS Action plugin


    Lua Version : Lua 5.1

    SQLite Version : 3.6.5

    Plugin Version : 1.0.0.0

    Plugin Licence : Just A Thanks



    Credits :

    Vista Compatibility Tested By Dermot

    SQLite3 Lua Wrapper Orginally written By

    * Tiago Dionizio
    * Doug Currie

    You can Download It From Here

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    nice work reteset

    Thanks

  3. #3
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    I'll be absolutely happy to say: Thank you!

    great work
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  4. #4
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by reteset View Post
    Lua Version : Lua 5.1
    Does this mean, what I think it means?

  5. #5
    Join Date
    May 2006
    Posts
    1,443
    Quote Originally Posted by ShadowUK View Post
    Does this mean, what I think it means?
    when we are creating plugins ,
    we are including a Lua Runtime Library (statically) same as AMS
    it was the version of that libray , just for informational
    also i wrote SQLite version ,which is 3.6.5 , but latest SQLite version is 3.6.11

    i thought, maybe some one may attempt to use a feature of SQLite 3.6.11

  6. #6
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Sounds amazing, You think you might be able to do LuaSocket? It'll really help my project finish.

  7. #7
    Join Date
    May 2006
    Posts
    1,443
    Quote Originally Posted by ShadowUK View Post
    Sounds amazing, You think you might be able to do LuaSocket? It'll really help my project finish.
    i am busy right now but i'll try it when i have time

  8. #8
    Join Date
    Apr 2005
    Posts
    6

    Thumbs up

    Nice work,
    Thank you!

  9. #9
    Join Date
    Jul 2006
    Location
    Japan
    Posts
    21

    No SQLite3 in "new action wizard"

    It's probably just me, but after installing the plugin and enabling it on my project, when I click on "new action" there is no SQLite3 option in the list like there is for previous versions.... any ideas...?



    Thanks
    Andy

  10. #10
    Join Date
    May 2006
    Posts
    1,443
    this is not a newer version of official SQLite action plugin

    this is a Lua module same as LuaCom
    orginally published here http://luaforge.net/projects/luasqlite/

    there is no script editor integration with this plugin
    you should write functions manually

    here is the Function Reference
    also this document is included with some examples into package that you have downloaded

  11. #11
    Join Date
    Nov 2004
    Location
    Belgium, Leuven
    Posts
    145
    although this is not (yet -- I hope) the new SQLite3 action plugin, this is very promising. Thank you so much reteset & dermot! I'm sure this small community appreciates your work!

    I tried to figure out how to use this, but since I'm not a db-specialist at all, I can only use the example to do the same as in the example: create a table and add some records. If I just want to add new records to an existing table, I get stuck. I don't find the cause; I guess it is me ;-)

    If anyone could help by creating an extended example, that would surely help!

    thanks

    gert

  12. #12
    Join Date
    Nov 2004
    Location
    Belgium, Leuven
    Posts
    145
    what I figured out so far...

    I need to add new record in 2 steps:
    - a db:exec with CREATE TABLE -- If this has already been done before, the step has no effect.
    - a db:exec with INSERT INTO -- This step is always executed

    What I did not yet discover is how to add data from input fields...
    INSERT INTO Table VALUES (NULL, field1 );
    works fine if I enter the data manually like "this is text of field1", but when this data is in a variable, I cannot insert the variable. I can do lot's of other stuff with it (like showing it in a dialogbox)... I don't understand why the variable is not inserted at all...

    Has anyone experienced the same problem?

    thanks

    gert

  13. #13
    Join Date
    May 2005
    Posts
    1,115
    Have you tried this:

    Code:
    myvalue = Input1.GetText()
    sql = "INSERT INTO Table (id, name) VALUES (null, "..myvalue..");"
    ...assuming your table column names are id and name, respectively.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  14. #14
    Join Date
    Nov 2004
    Location
    Belgium, Leuven
    Posts
    145
    Hi Bule,

    what happens in that case is that the text ..myvalue.. is stored in the db, and not the actual contents of the variable myvalue...

    Thanks

    gert

  15. #15
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by bule View Post
    Have you tried this:

    Code:
    myvalue = Input1.GetText()
    sql = "INSERT INTO Table (id, name) VALUES (null, "..myvalue..");"
    ...assuming your table column names are id and name, respectively.
    Quote Originally Posted by gvanassche View Post
    Hi Bule,

    what happens in that case is that the text ..myvalue.. is stored in the db, and not the actual contents of the variable myvalue...

    Thanks

    gert
    Both of you have errors.

    First, bule.

    Code:
    myvalue = Input1.GetText()
    sql = "INSERT INTO Table (id, name) VALUES (null, "..myvalue..");"
    Don't you mean
    Code:
    Input.GetText("Input1");
    ?

    And gvanassche, "..Variable.." is concentation, which means "..myvalue.." will be replaced with the variable in myvalue.

Similar Threads

  1. FREE: wStartup Action Plugin
    By TimeSurfer in forum AutoPlay Media Studio 7.5
    Replies: 8
    Last Post: 03-02-2012, 01:19 PM
  2. Free WindowEx Action Plugin
    By reteset in forum AutoPlay Media Studio 7.5
    Replies: 88
    Last Post: 01-30-2011, 10:40 AM
  3. FREE: UserMgmt Action Plugin
    By TimeSurfer in forum AutoPlay Media Studio 7.5
    Replies: 3
    Last Post: 04-11-2010, 09:21 PM
  4. FREE ACTION PLUGIN: Assert
    By ShadowUK in forum AutoPlay Media Studio 7.5
    Replies: 17
    Last Post: 02-22-2009, 05:36 AM
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts