summary refs log tree commit diff stats
path: root/lib/impure
Commit message (Collapse)AuthorAgeFilesLines
...
* add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) (#16977)Timothee Cour2021-02-091-9/+11
| | | | | * add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) * changelog
* fix some warnings (#16952)flywind2021-02-081-1/+1
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-151-11/+11
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fix #16103 (#16109) [backport:1.0]flywind2020-11-241-5/+21
| | | | | * fix #16103 * docs
* fixes #16080 (#16091) [backport:1.2]RokkuCode2020-11-231-1/+1
| | | | | | | * fixes #16080 db_sqlite: Error: undeclared field: 'untypedLen' * redacting fix
* fixes db_mysql broken quoting; refs ↵Andreas Rumpf2020-11-181-1/+0
| | | | https://github.com/nim-lang/Nim/commit/c16ee37a7106c645a0d17cc6bd8d399e20f61d96#r44209990 [backport:1.4] (#16035)
* Handle BLOB column type in SQLite as binary data (#15681)Regis Caillaud2020-11-021-15/+78
| | | | | | * Fixed not handling blob correctly in sqlite * Fixed setLen commented by mistake * Added binary example as db_sqlite doc * Added tests for sqlite binary data
* fixes #15560 (#15587)Andreas Rumpf2020-10-151-2/+1
|
* various documentation fixes [backport] (#15422)Miran2020-09-291-4/+4
|
* odbc regression from #14357 (#15417)shirleyquirk2020-09-291-1/+1
| | | | #14357 changed from sending 'val', an int, to a pointer to int, which is understandable, but not how SQLSetEnvAttr works. "Depending on the value of Attribute, ValuePtr will be a 32-bit integer value or point to a null-terminated character string"
* .noalias annotation; frontend support (#15419)Andreas Rumpf2020-09-281-1/+1
| | | | | * .noalias annotation; frontend support * added .noalias support to Nim; implements https://github.com/nim-lang/RFCs/issues/204
* Fix #15219 SQL escape in db_mysql is not enough (#15234)Bung2020-09-041-3/+17
|
* fixes #15221 (#15230)Andreas Rumpf2020-08-271-1/+1
|
* better strict funcs, WIP (#15199)Andreas Rumpf2020-08-181-2/+4
| | | | | * better strict funcs, WIP * progress
* db_postgres document how to use it with unix socket (#15187)Juan Carlos2020-08-171-2/+22
|
* fix sqlgetdata regression in odbc (#15161)cooldome2020-08-071-12/+8
| | | | | | | | | * fix sqlgetdata import * fix db_odbc * more fixes * fix style
* An optimizer for ARC (#14962)Andreas Rumpf2020-07-151-5/+5
| | | | | | | | | | | | | | | | | | | | * WIP: an optimizer for ARC * do not optimize away destructors in 'finally' if unstructured control flow is involved * optimized the optimizer * minor code cleanup * first steps to .cursor inference * cursor inference: big steps to a working solution * baby steps * better .cursor inference * new feature: expandArc for easy inspection of the AST after ARC transformations * added topt_cursor test * adapt tests * cleanups, make tests green * optimize common traversal patterns * moved test case * fixes .cursor inference so that npeg compiles once again * cursor inference: more bugfixes Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix style inconsistencies due to the previous commitnarimiran2020-07-061-1/+1
|
* revert 0944b0f4narimiran2020-07-061-1/+1
|
* Add jsre (#14870)Juan Carlos2020-07-032-2/+2
|
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-171-7/+0
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* close #14284 document semantics for start for re,nre; improve examples (#14483)Timothee Cour2020-05-282-196/+67
|
* add bindParams to db_sqlite (#14408)Bung2020-05-261-41/+159
| | | | | | | | | | | | | | | | | | | | | * add bindParams to db_sqlite * no need typeinfo * remove extro spaces * reduce bindParams to two branches,raise DbError * Update lib/impure/db_sqlite.nim * change bindParams to macro,accept varargs[untyped] as params * change bind blob val to openArray[byte] * remove unused err type * explicitly using i32 param * using import std/private/since * SQLITE_OK to right hand * bindParam val int using bindParam overload * copy data by default * change exec to template * remove SqlPrepared procs unused varargs * fix setupquery for prepared,reset first for exec prepared,add bindNull for literal nil Co-authored-by: alaviss <leorize+oss@disroot.org>
* add insert,tryInsert unify for postgres that need pk name (#14416)Bung2020-05-224-0/+67
| | | | | | | | | | | * add insert,tryInsert unify for postgres that need pk name * add ReadDbEffect to new procs * add .since and changelog * change since to 1.3 * Update lib/impure/db_postgres.nim Co-authored-by: bung87 <crc32@qq.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: alaviss <leorize+oss@disroot.org>
* add SqlPrepared api fix #13559 (#14365)Bung2020-05-161-0/+101
| | | Co-authored-by: bung87 <crc32@qq.com>
* fix #9771 (#14357)Bung2020-05-151-5/+5
| | | | | | | * fix #9771 * map SQLLEN SQLULEN * fix proc params take TSqlLen Co-authored-by: bung87 <crc32@qq.com>
* Fail quickly if re or nre module is attempted to be compiled with js ↵Kaushal Modi2020-05-142-1/+6
| | | | | [backport] (#14341) Fixes https://github.com/nim-lang/Nim/issues/14338 .
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-4/+4
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* change some Exceptions to CatchableError or Defect, fixes #10288 (#14069)hlaaftana2020-04-221-1/+1
|
* fix #7241 (#13779)itsumura-h2020-04-031-0/+5
| | | finalize() should run in insert()
* Deprecate DCE:on (#13839)Juan Carlos2020-04-022-3/+0
|
* Add Documentation (#13811)Juan Carlos2020-03-311-2/+8
| | | | * Add more Docs and runnableExamples
* Remove 2 old deprecated files (#13702)Juan Carlos2020-03-202-20/+0
|
* fixes #13654Andreas Rumpf2020-03-161-1/+1
|
* fix #13218: avoid some irrelevant warnings for nim doc,rst2html,--app:lib, + ↵Timothee Cour2020-03-131-1/+1
| | | | | | | | other fixes (#13550) * fix #13218: avoid some irrelevant warnings for nim doc,rst2html * suppress warnRedefinitionOfLabel for nim doc * lots of fixes for UnusedImport warnings
* make nre compile with --gc:arcAraq2020-01-261-66/+54
|
* added note to re constructor regarding performance (#13224)whiterock2020-01-221-1/+5
| | | Since I was new to regex I did not know that there is a compilation going on with ``re"[abc]"`` constructor and so I followed the other examples in the docs blindly, that is I just put the constructor directly in the arguments of match, find, etc., which was inside a loop and then wondered why my performance was so bad. Of course putting it outside the loop made it vastly more performant. People like me would benefit from the small note I added I would think :)
* Check pqntuples > 0 in getValue. Fixes #12973 (#12974)Chris Heller2019-12-291-4/+12
|
* ported re.nim to ARCAraq2019-12-241-1/+10
|
* [backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. ↵3n-k12019-11-281-1/+1
| | | | (#12754)
* remove deprecated procs (#12535)Andreas Rumpf2019-11-051-2/+4
|
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-301-1/+1
|
* Documentation improvements around the db interface (#12362)Ray Imber2019-10-081-0/+12
| | | | 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
* use system.move instead of system.shallowCopy if the GC mode requires itAndreas Rumpf2019-10-041-1/+1
|
* [backport] Fix typo in docs (#12356) [ci skip]Andrew Owen2019-10-041-1/+1
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-273-3/+3
|
* rdstdin: remove cruft that shouldn't have been exported or added (#12014)Andreas Rumpf2019-08-231-40/+0
|
* removed unused imports [refactoring]Andreas Rumpf2019-08-081-1/+1
|
* Skip db_postgres.setRow if getRow returns 0 rows (#11859)Chris Heller2019-08-041-2/+4
| | | Fixes nim-lang/Nim#11821
* makes the -d:nimIncremental compiler mode compile againAndreas Rumpf2019-07-271-5/+5
|