-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for directly providing ODBC DNS #28
Commits on Jan 27, 2015
-
Support for directly providing ODBC DNS
A new way of using the env.connect method, providing a table of options. In this case, the old method can now be used as: env.connect{ user = "foo", password = "bar", source = "My DB DSN from odbcad32" } But also, a DSN can be provided: env.connect{ dsn = [[DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};PWD=bar;DBQ=C:\path\my_db.mdb]] }
Configuration menu - View commit details
-
Copy full SHA for 83992a4 - Browse repository at this point
Copy the full SHA 83992a4View commit details
Commits on Apr 9, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 0a69e30 - Browse repository at this point
Copy the full SHA 0a69e30View commit details -
Changed readme file to match project's intentions and use markdown
Configuration menu - View commit details
-
Copy full SHA for 2ab1e68 - Browse repository at this point
Copy the full SHA 2ab1e68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ce67ee - Browse repository at this point
Copy the full SHA 2ce67eeView commit details -
Just some stuff to save typing when pulling info from tables
Configuration menu - View commit details
-
Copy full SHA for c300729 - Browse repository at this point
Copy the full SHA c300729View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c06ede - Browse repository at this point
Copy the full SHA 0c06edeView commit details -
Convert Firebird driver to use table for connection
Firebird driver now uses connection info table for opening up connections. Next step will involve adding support for optional parameters
Configuration menu - View commit details
-
Copy full SHA for 2a65a4b - Browse repository at this point
Copy the full SHA 2a65a4bView commit details -
When requiring a driver, it will search for other LuaSQL drivers already loaded and use that table to place their environment function in. i.e. ``` luasql = require"luasql.odbc" luasql = require"luasql.mysql" ``` Results in both drivers being available via the luasql table
Configuration menu - View commit details
-
Copy full SHA for 3e6a06e - Browse repository at this point
Copy the full SHA 3e6a06eView commit details
Commits on Apr 10, 2015
-
Connect now supports 'charset'
Connection charset can now be selected for Firebird, defaults to 'UTF8'
Configuration menu - View commit details
-
Copy full SHA for 862be2a - Browse repository at this point
Copy the full SHA 862be2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4a5d2f - Browse repository at this point
Copy the full SHA c4a5d2fView commit details -
Renamed functions to avoid confusion
These may end up in the wider LuaSQL API, plus their current name made them look like official Lua API
Configuration menu - View commit details
-
Copy full SHA for 342e875 - Browse repository at this point
Copy the full SHA 342e875View commit details
Commits on Apr 11, 2015
-
Firebird driver supports basic prepared statements
Mass of refactoring and other work, but the Firebird driver now has prepared statements. No ability to set parameters yet though.
Configuration menu - View commit details
-
Copy full SHA for e3d3898 - Browse repository at this point
Copy the full SHA e3d3898View commit details -
Now specify the SQL dialect via a connection parameter
Configuration menu - View commit details
-
Copy full SHA for 2be82a8 - Browse repository at this point
Copy the full SHA 2be82a8View commit details
Commits on Apr 15, 2015
-
Protecting against buffer overrun
Avoid potential buffer overrun from connection parameters
Configuration menu - View commit details
-
Copy full SHA for 7aa596e - Browse repository at this point
Copy the full SHA 7aa596eView commit details
Commits on Apr 16, 2015
-
Execute now accepts parameters
Both connection and statement objects now accept parameters being passed to their execute method
Configuration menu - View commit details
-
Copy full SHA for cffa10b - Browse repository at this point
Copy the full SHA cffa10bView commit details -
Handling of cursor state and it's relation to statements is laid out properly
Configuration menu - View commit details
-
Copy full SHA for 9327b23 - Browse repository at this point
Copy the full SHA 9327b23View commit details -
Statements now check if any open cursors are depending on it and properly releases itself from the connection
Configuration menu - View commit details
-
Copy full SHA for b4fd2b4 - Browse repository at this point
Copy the full SHA b4fd2b4View commit details -
Close statements on conn:execute when they don't return cursors Also some minor fixes/tidy
Configuration menu - View commit details
-
Copy full SHA for 507fe0c - Browse repository at this point
Copy the full SHA 507fe0cView commit details
Commits on Apr 17, 2015
-
Convert date stamps to unambiguous YYYY-MM-DD format also supported by Firebird (e.g. value can be passed as a param)
Configuration menu - View commit details
-
Copy full SHA for 36b6a08 - Browse repository at this point
Copy the full SHA 36b6a08View commit details -
Parameters now take os.time values
As well as timestamp strings, parameters can handle values returned from os.time()
Configuration menu - View commit details
-
Copy full SHA for 5b79d90 - Browse repository at this point
Copy the full SHA 5b79d90View commit details -
Too much repetition of code, slimmed it down
Configuration menu - View commit details
-
Copy full SHA for 65bfb3d - Browse repository at this point
Copy the full SHA 65bfb3dView commit details -
Force close of statements used internally
When a cursor created from a direct con:execute call closes, the associated statement wasn't closed until garbage collection. Now flagging those internal statements so they can be forced closed with the cursor
Configuration menu - View commit details
-
Copy full SHA for f405cb8 - Browse repository at this point
Copy the full SHA f405cb8View commit details -
Using uchar for holding bool value
Didn't make much sense to use a short just to hold a bool value (and can't rely on <stdbool.h> existing)
Configuration menu - View commit details
-
Copy full SHA for 7a709dc - Browse repository at this point
Copy the full SHA 7a709dcView commit details -
Forgot luasql_tostring relies on the layout of the structs starting with short
Configuration menu - View commit details
-
Copy full SHA for 2e20062 - Browse repository at this point
Copy the full SHA 2e20062View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a4a816 - Browse repository at this point
Copy the full SHA 2a4a816View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2eb89ba - Browse repository at this point
Copy the full SHA 2eb89baView commit details
Commits on Apr 20, 2015
-
Tidied up ODBC's env:connect functions
Neater layout to the ODBC driver's connect function
Configuration menu - View commit details
-
Copy full SHA for 1bb7db1 - Browse repository at this point
Copy the full SHA 1bb7db1View commit details -
Opening up the struct and metatable for statements in ODBC
Configuration menu - View commit details
-
Copy full SHA for fc1ac8b - Browse repository at this point
Copy the full SHA fc1ac8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8af1e32 - Browse repository at this point
Copy the full SHA 8af1e32View commit details -
Move (un)registerobj functions into wider library
Was used just in Firebird driver, now available for the whole package
Configuration menu - View commit details
-
Copy full SHA for f7f9169 - Browse repository at this point
Copy the full SHA f7f9169View commit details -
Lock via pointer so we don't need to also keep ref numbers
Configuration menu - View commit details
-
Copy full SHA for cb62a5e - Browse repository at this point
Copy the full SHA cb62a5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67ba726 - Browse repository at this point
Copy the full SHA 67ba726View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b82654 - Browse repository at this point
Copy the full SHA 8b82654View commit details
Commits on Apr 21, 2015
-
Ready to be used by both conn:execute and stmt:execute
Configuration menu - View commit details
-
Copy full SHA for 1a434d7 - Browse repository at this point
Copy the full SHA 1a434d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbb6245 - Browse repository at this point
Copy the full SHA fbb6245View commit details -
ODBC stmt:getparamtypes function support
But, most ODBC drivers do not support SQLDescribeParam, so this won't work in most cases.
Configuration menu - View commit details
-
Copy full SHA for fc220a5 - Browse repository at this point
Copy the full SHA fc220a5View commit details
Commits on Apr 22, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 3dd893e - Browse repository at this point
Copy the full SHA 3dd893eView commit details -
First stab at ODBC parameter binding
It's trickier than it should be because we can't rely on SQLDescribeParam to be working so it's just forcing the types to whatever the Lua type is
Configuration menu - View commit details
-
Copy full SHA for f6ee06d - Browse repository at this point
Copy the full SHA f6ee06dView commit details
Commits on Apr 23, 2015
-
Configuration menu - View commit details
-
Copy full SHA for bc252b2 - Browse repository at this point
Copy the full SHA bc252b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d90417 - Browse repository at this point
Copy the full SHA 4d90417View commit details -
Moved luasql_pushinteger into wider project
Using the luasql_ prefix to make clear it's a backward compat patch
Configuration menu - View commit details
-
Copy full SHA for 6f41ec6 - Browse repository at this point
Copy the full SHA 6f41ec6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e770ca - Browse repository at this point
Copy the full SHA 0e770caView commit details -
ODBC Cursor now closes itself when out of results
This behaviour matches the documentation
Configuration menu - View commit details
-
Copy full SHA for 22cebe4 - Browse repository at this point
Copy the full SHA 22cebe4View commit details -
Better method to fix old connection calls
Bit more flexible and clear, should be a quick copy/paste for other drivers
Configuration menu - View commit details
-
Copy full SHA for 210e800 - Browse repository at this point
Copy the full SHA 210e800View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6b8f1a - Browse repository at this point
Copy the full SHA d6b8f1aView commit details -
MySQL driver supports new env:connect style
Connection details table support in
Configuration menu - View commit details
-
Copy full SHA for 9241007 - Browse repository at this point
Copy the full SHA 9241007View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4e14f4 - Browse repository at this point
Copy the full SHA e4e14f4View commit details
Commits on Apr 25, 2015
-
Using the following command: astyle --style=1tbs --indent=tab=5 --align-pointer=name --align-reference=name --max-code-length=80 --lineend=linux ls_firebird.c Then tidied up a bit
Configuration menu - View commit details
-
Copy full SHA for d8702e4 - Browse repository at this point
Copy the full SHA d8702e4View commit details -
Using the following command: astyle --style=1tbs --indent=tab=5 --align-pointer=name --align-reference=name --max-code-length=80 --lineend=linux ls_firebird.c Then tidied up a bit
Configuration menu - View commit details
-
Copy full SHA for be804c6 - Browse repository at this point
Copy the full SHA be804c6View commit details -
Using the following command: astyle --style=1tbs --indent=tab=5 --align-pointer=name --align-reference=name --max-code-length=80 --lineend=linux ls_mysql.c Then tidied up a bit
Configuration menu - View commit details
-
Copy full SHA for 87e0475 - Browse repository at this point
Copy the full SHA 87e0475View commit details -
Not 100% on this, ideally we'd want the lowest common denominator, but for now it avoids some warnings (e.g. no 'long long' and 'snprintf' support in plain ANSI) Also bumped the version in the makefile to 3.0.0
Configuration menu - View commit details
-
Copy full SHA for 4edf87b - Browse repository at this point
Copy the full SHA 4edf87bView commit details -
astyle --style=1tbs --indent=tab=5 --align-pointer=name --align-reference=name --max-code-length=80 --lineend=linux ls_sqlite.c ls_sqlite3.c
Configuration menu - View commit details
-
Copy full SHA for 721822f - Browse repository at this point
Copy the full SHA 721822fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f39b91 - Browse repository at this point
Copy the full SHA 4f39b91View commit details -
Created statement object for MySQL driver
Basic struct and metadata entries
Configuration menu - View commit details
-
Copy full SHA for 2c99c56 - Browse repository at this point
Copy the full SHA 2c99c56View commit details
Commits on Apr 27, 2015
-
Sorted out differences between driver reg on 5.1/5.3
There are different ways to register libs on Lua between 5.1 and 5.3. Lua 5.1 support is handy because LuaJIT stuck with the 5.1 API
Configuration menu - View commit details
-
Copy full SHA for 1a6e57a - Browse repository at this point
Copy the full SHA 1a6e57aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66d924d - Browse repository at this point
Copy the full SHA 66d924dView commit details
Commits on Apr 30, 2015
-
ODBC function to list available drivers
Handy to be able to find out what's available to use
Configuration menu - View commit details
-
Copy full SHA for 81eb6c1 - Browse repository at this point
Copy the full SHA 81eb6c1View commit details
Commits on May 2, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 817e8ad - Browse repository at this point
Copy the full SHA 817e8adView commit details
Commits on May 3, 2015
-
Configuration menu - View commit details
-
Copy full SHA for f077127 - Browse repository at this point
Copy the full SHA f077127View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76c4cc3 - Browse repository at this point
Copy the full SHA 76c4cc3View commit details
Commits on May 4, 2015
-
Technically these should been here for the function decs
Configuration menu - View commit details
-
Copy full SHA for c5ad4a3 - Browse repository at this point
Copy the full SHA c5ad4a3View commit details -
The old version was a bit clunky; required editing the config file to compile different drivers, and didn't support passing alt parameters (include/lib dirs) from the command line.
Configuration menu - View commit details
-
Copy full SHA for 0a2c974 - Browse repository at this point
Copy the full SHA 0a2c974View commit details
Commits on May 5, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 28f3b3e - Browse repository at this point
Copy the full SHA 28f3b3eView commit details
Commits on May 7, 2015
-
Configuration menu - View commit details
-
Copy full SHA for e484b48 - Browse repository at this point
Copy the full SHA e484b48View commit details
Commits on May 8, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 60d2635 - Browse repository at this point
Copy the full SHA 60d2635View commit details -
Configuration menu - View commit details
-
Copy full SHA for 66bbede - Browse repository at this point
Copy the full SHA 66bbedeView commit details
Commits on May 26, 2015
-
Merge branch 'master' of https://github.com/keplerproject/luasql
Conflicts: src/ls_mysql.c
Configuration menu - View commit details
-
Copy full SHA for 8d45355 - Browse repository at this point
Copy the full SHA 8d45355View commit details
Commits on Jul 31, 2015
-
Platform agnostic column buffers
Issues with integer sizes differing between 32 & 64-bit archs (same as committed to Kepler root, but the code is far to different to merge now)
Configuration menu - View commit details
-
Copy full SHA for 2900df6 - Browse repository at this point
Copy the full SHA 2900df6View commit details