Commit Graph

58 Commits

Author SHA1 Message Date
itsumura-h
87e6b88f3b fix #7241 (#13779)
finalize() should run in insert()
2020-04-03 09:38:05 +02:00
Juan Carlos
46ca19ff18 Deprecate DCE:on (#13839) 2020-04-02 02:58:43 +02:00
Ray Imber
7c23522b29 Documentation improvements around the db interface (#12362)
Added more details about the limits and reasoning behind the API.
Came about from this discussion on IRC: https://irclogs.nim-lang.org/04-10-2019.html#16:58:04
2019-10-08 11:24:06 +02:00
Andreas Rumpf
0d5bd7e8b5 removed unused imports [refactoring] 2019-08-08 17:03:19 +02:00
Andreas Rumpf
25e6c53bb5 makes the -d:nimIncremental compiler mode compile again 2019-07-27 14:01:28 +02:00
Huy
e5425b5f2f [feature] add unsafeColumnAt procs, that return unsafe cstring from InstantRow (#11647) 2019-07-10 14:56:09 +02:00
jiro
468599c654 db_sqlite: Update documentation (#10330) (#11266) 2019-05-19 20:27:12 +02:00
Zed
3b4952da94 Fix header inconsistencies in documentation (#11071) 2019-04-23 08:40:20 +02:00
Araq
7f0559b93f fixes #7241 2019-01-13 14:09:14 +01:00
Araq
3f6168b337 removes deprecated T/P types 2018-11-16 13:27:56 +01:00
Federico Ceratto
afc453beff Update example (#9395) 2018-10-17 00:17:37 +02:00
Andreas Rumpf
94684488d6 make more tests green 2018-08-14 21:15:03 +02:00
Varriount
381acc09e9 Update sqlite example to use empty strings.
Update sqlite example to use empty strings to use empty strings instead of nil.
2018-06-03 14:37:41 -04:00
Federico Ceratto
cb87bba82f Update example (#7788) 2018-06-01 11:28:20 -04:00
Dominik Picheta
af593c2ef3 Better db_sqlite errors when db_sqlite not connected. 2018-05-13 09:09:20 +02:00
Jacek Sieka
72dfe176f5 remove dead code elimination option (#7669) 2018-04-23 11:02:38 +02:00
Andreas Rumpf
bb5bab1b74 make tests green again 2017-11-07 12:57:32 +01:00
Andreas Rumpf
7083c8df57 minor improvement for the db_sqlite module 2017-09-27 12:00:19 +02:00
Dominik Picheta
6ca9e5cbcc Improved documentation for all db modules. 2016-01-18 13:34:53 +00:00
Andreas Rumpf
255177f7cd new db_sqlite requires deadCodeElim:on because not every sqlite3_column_name 2015-12-29 20:39:52 +01:00
Andreas Rumpf
1386592aab implements column information retrival for db_sqlite 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
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
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
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
pdw
ea03fc6886 lib/impure - Dropped 'T' from types 2015-06-04 13:17:09 +02:00
Oleh Prypin
32109a7867 Don't run non-test code when defined(testing) 2015-04-21 14:37:29 +03:00
KeMeGe
171d51a08c move database encoding options to setEncoding(), leave open() as it is 2015-03-16 13:53:38 +08:00
KeMeGe
ca8102b96d Add character set options when opening DB connection 2015-03-14 15:21:38 +08:00
Araq
a41b62da97 fixes #1866 2015-01-10 23:52:29 +01:00
Araq
be813d205f updated db_sqlite.nim 2014-08-29 00:16:12 +02:00
Araq
d05df2173b Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
Grzegorz Adam Hankiewicz
d07f86b159 Avoids raising exceptions in tryInsertID. 2014-01-29 23:25:21 +01:00
Araq
383fbca27e better tester 2014-01-17 08:47:51 +01:00
Araq
4045d7829b fixes db_sqlite 2014-01-13 01:21:46 +01:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
012a7b5522 Merge pull request #262 from gradha/pr_adds_some_documentation_to_db_modules
Documents NULL to "" db_* transformation and return values.
2012-11-24 17:54:04 -08:00
Grzegorz Adam Hankiewicz
cdd324d163 Documents NULL to "" db_* transformation and return values. 2012-11-24 20:41:26 +01:00
Araq
14fc0631d7 fixes #250 2012-11-19 00:16:25 +01:00
Araq
3c0a6a8962 'assert' hides EAssertionFailsure; stdlib makes use of 'tags' 2012-11-18 01:36:20 +01:00
Grzegorz Adam Hankiewicz
f35b9e2dc0 Adds $ as supplied proc to varargs in database modules. 2012-10-20 09:54:45 +02:00
Araq
8717742f00 bugfix: leak in db_sqlite.GetValue 2012-10-10 01:05:03 +02:00
Dominik Picheta
8f3dc6ebd3 Fixes segfault in db_sqlite. Fixes problems with times.format. 2012-10-07 15:37:12 +01:00
Araq
0171566c98 openarray/varargs split; breaks bootstrapping 2012-08-16 08:34:33 +02:00
Araq
4fbba0a65a changed integer promotion rules; breaks bootstrapping and lots of code 2012-07-08 21:03:47 +02:00
Araq
e95f155af3 small bugfixes; documentation generator supports smilies for the forum 2012-05-01 11:14:29 +02:00