Andreas Rumpf
1386592aab
implements column information retrival for db_sqlite
2015-12-17 14:39:40 +01:00
Andreas Rumpf
3313170b8d
fixes InstantRow decl; implements column information retrival for db_mysql
2015-12-17 14:39:40 +01:00
Andreas Rumpf
a3c8bb9376
updated db*.nim modules
2015-12-16 21:24:13 +01:00
Andreas Rumpf
cb10f30656
big update for the db*.nim modules; uses new db_common.nim
2015-12-16 20:56:12 +01:00
JamesP
16d7db47aa
add db_odbc library module
2015-12-09 14:02:28 +10:00
Anatoly Galiulin
c017904363
Fixed issue 3513: wrong setupQuery realization
2015-11-06 10:24:23 +06:00
Dominik Picheta
82f3cab1ac
Improved postgres docs and added untestable tests.
2015-10-27 11:06:00 +01:00
JamesP
a82b9cbda3
fix doco by removing extra ` chars, change a word and
...
line up multi-line text
2015-10-27 11:06:00 +01:00
JamesP
02d882cfbe
add doco outlining the two SQL parameter substitution mechanisms for the db_postgres module
...
adjust doco note: indent by one space
shorten doco example lines, by splitting across multiple lines
shorten doco line widths by splitting long lines into multi-lines
fix to prepare() example in doco "Note:" section
2015-10-27 11:05:59 +01:00
JamesP
033c461a87
setupQuery() with SqlQuery take parameter substitution with "?"
...
add instantRows() with SqlPrepared parameter
fix setupQuery() for SqlQuery to produce a unique identiying query name
add rows() iterator with SqlPrepared parameter
add execAffectedRows for SqlPrepared
2015-10-27 11:05:59 +01:00
JamesP
b2a48b0ed6
tryExec() with SqlQuery now takes "?" substitution parameters
...
add tryExec() with SqlPrepared parameter
exec() with SqlQuery now expects "?" parameter substitution
2015-10-27 11:05:59 +01:00
JamesP
4e19106221
add check to dbFormat() to verify parameter substitution has "?" identifier
...
add check to prepare() that parameter substitution has "$1" identifier
2015-10-27 11:05:59 +01:00
Araq
8be9e46403
udpated the compiler and tester to use getOrDefault
2015-10-13 14:10:33 +02:00
Araq
ec357a3edd
deleted graphics module; it's a Nimble package now
2015-09-23 21:46:36 +02:00
JamesP
0edb04288b
Clean up a line ending
2015-09-06 23:02:28 +10:00
JamesP
9aa9920602
instantRows doco added "the" to improve readability
2015-09-06 22:40:15 +10:00
JamesP
5ae33434f8
fastRows() iterator doco updated (similar to db_mysql) with sqlite specific
...
[Edb] error text
2015-09-06 22:39:23 +10:00
JamesP
81e41dc795
Add example (similar to db_mysql) with changes to table definition
...
and transaction to match sqlite SQL syntax
2015-09-06 22:34:04 +10:00
Dominik Picheta
d7c60e86b4
Bold emphasis and fix typo.
2015-09-05 21:15:01 +01:00
Dominik Picheta
14a233dc75
Merge branch 'db_mysqlExamples' of https://github.com/jlp765/Nim into jlp765-db_mysqlExamples
...
Conflicts:
lib/impure/db_mysql.nim
2015-09-05 21:14:37 +01:00
JamesP
22d56fc494
Cleanup of line endings
2015-09-05 11:49:25 +10:00
JamesP
d02d1219b0
instantRows doco updated with "the" to improve readability
2015-09-05 11:48:47 +10:00
JamesP
5b11ce27c4
fastRows iterator doco updated to clarify what happens
...
when break a fastRows loop
2015-09-05 11:47:28 +10:00
Adam Strzelecki
43bddf62dd
lib: Trim .nim files trailing whitespace
...
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
JamesP
da2d0845b8
lib/impure/db_mysql add example code-block
2015-08-29 07:50:14 +10:00
JamesP
1b47941b01
fixes #3220 lib/impure/db_mysql.nim getValue()
...
mysql connector command out of sync error due to
breaking the fastRows iterator loop
2015-08-28 22:51:35 +10:00
Araq
10a7830ba2
fixes Windows version of readPasswordFromStdin (setLen doesn't accept negative values anymore)
2015-08-18 13:58:57 +02:00
Araq
a1caef474b
proper distinction between --gc:none and --os:standalone
2015-06-29 02:48:33 +02:00
Araq
aa8b470cf6
use linenoise instead of GNU readline
2015-06-21 10:04:26 +02:00
Araq
87f65f5e72
preparations for more Nimble packages; clear licensing; fixes #2949
2015-06-20 23:24:21 +02:00
patrick dw
15e7fe787a
renamed writeln to writeLine in lib
2015-06-19 01:02:22 -05:00
Flaviu Tamas
90292754f5
Fix flaviut/nre#20
2015-06-18 12:44:12 -04:00
Andreas Rumpf
d31fe7666a
Merge pull request #2818 from flaviut/add-nre
...
Add nre to stdlib
2015-06-12 00:13:19 +02:00
Flaviu Tamas
31514550d3
Revert "Base re off of nre"
...
This reverts commit dc60a51e15 .
2015-06-10 17:14:20 -04:00
Adam Strzelecki
8742907133
db: InstantRow and instantRows
...
It is drop-in replacement for Row and fastRows, however instantRows returns a
handle, not seq[string], so no Nim string is created until [] operator is
called on the given handle. Also there is a len() proc returning number of
columns in the handle.
In some situations, when we iterate through many rows, but later we just read
few columns this solution will be quicker than converting all column to Nim
seq[string] on each iteration.
2015-06-09 20:53:03 +02:00
Flaviu Tamas
5118c09f49
Fix ambiguous character literal
2015-06-07 13:13:05 -04:00
Flaviu Tamas
3bbbb1a682
Fix potential code bloat
2015-06-07 13:13:05 -04:00
Flaviu Tamas
ca81749f2a
Rename RegexException according to NEP1
2015-06-07 13:13:04 -04:00
Flaviu Tamas
a707f8de65
Edit re and nre doc comments
2015-06-07 13:13:04 -04:00
Flaviu Tamas
4fbd95549d
Clean up nre imports
2015-06-07 13:13:04 -04:00
Flaviu Tamas
38064d043a
Use stdlib's PCRE in nre
2015-06-07 13:13:04 -04:00
Flaviu Tamas
8caa5cd292
Deprecate re
2015-06-07 13:13:04 -04:00
Flaviu Tamas
15ef227c48
Adjust re for nre's inclusive bounds
2015-06-07 13:13:04 -04:00
Oleh Prypin
dc60a51e15
Base re off of nre
2015-06-07 13:13:04 -04:00
Flaviu Tamas
be64b8d0d4
Ensure no one uses internal module
2015-06-07 13:12:19 -04:00
Flaviu Tamas
90ed34db72
Merge branch 'devel' of https://github.com/Araq/Nim into add-nre
...
* 'devel' of https://github.com/Araq/Nim :
Fix #964 , fix #1384
Don't inspect typedescs
2015-06-07 13:12:18 -04:00
Adam Strzelecki
2dcaa75e2d
Fixup: Reverted TZipFileStream name change
...
This fixes broken b0469c11e3 that incompletely
reverted TZipFileStream name change.
2015-06-05 12:44:28 +02:00
Perelandric
b0469c11e3
Reverted TZipFileStream name change
2015-06-04 13:18:41 +02:00
pdw
ea03fc6886
lib/impure - Dropped 'T' from types
2015-06-04 13:17:09 +02:00
Flaviu Tamas
075a5e8440
Disable static building of PCRE
2015-05-26 19:20:00 -04:00