summary refs log tree commit diff stats
path: root/lib/impure
Commit message (Collapse)AuthorAgeFilesLines
* simplify rdstdin (#18382)Timothee Cour2021-06-281-10/+4
|
* PCRE, nimgrep: add limit for buffer size (#18280)Andrey Makarov2021-06-171-3/+10
|
* fix #9437(fix `re.replace` wrong behaviour) (#17546)flywind2021-06-101-2/+18
| | | | | * fix nim js cmp fails at CT * fix
* Improve db_postgres iterators (#18144)Artem Klevtsov2021-06-031-62/+117
| | | | | | | | | | | | | | | * Fix pqSetSingleRowMode case. Add links to the docs * Add missing PGContextVisibility enum * Remove unused PGContextVisibility enum * Improve db_postgres iterators * Fix instantRows with DbColumns. Cosmetics. * Reduce copy&paste in db_postgres * Move pqclear inside loop
* [std/re] fix findBounds and find procs (#18028)flywind2021-05-311-2/+2
| | | | | | | * [std/re] make interface consistent * tiny * revert
* docs: make inline markup more compatible with Markdown (#18053)Andrey Makarov2021-05-211-1/+1
| | | fixes https://github.com/timotheecour/Nim/issues/739
* Revert "[std/re]fix terrible and strange interface" (#18027)flywind2021-05-161-6/+6
| | | This reverts commit c218f2ba0b8e27110087ea754c11cff123806a94.
* [std/re]fix terrible and strange interfaceflywind2021-05-161-6/+6
|
* Escape `%00` / `\0` in `dbQuote` (#18015) [backport:1.4]Thomas T. Jarløv2021-05-151-1/+3
| | | Fix https://github.com/nim-lang/Nim/issues/17925
* Fix `insert` calling wrong function (#17856)Fröhlich A2021-04-291-1/+1
| | | | The `insert` method is calling `tryInsertID`, which ignores the `pkName` parameter. Calling `tryInsert` instead should be correct.
* fix RST parsing when no indent after enum.item (fix #17249) (#17257)Andrey Makarov2021-03-121-1/+1
|
* use `-r:off` for runnableExamples that should compile but not run (#17203)Timothee Cour2021-03-011-9/+8
| | | | | * use -r:off for runnableExamples that should compile but not run * use -r:off in other RT disabled tests
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-286-12/+12
|
* use single backtick (#17133)flywind2021-02-211-6/+6
|
* use single backtick (#17115)flywind2021-02-202-153/+153
|
* use single backtick (#17100)flywind2021-02-184-27/+27
|
* remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ↵Timothee Cour2021-02-171-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16918) * nimNoArrayToCstringConversion deadcode * nimbabel deadcode * nimHasalignOf deadcode * nimvarargstyped deadcode * nimhygiene deadcode * nimNewTypedesc deadcode * nimlocks deadcode * nimHasCppDefine deadcode * nimHasRunnableExamples deadcode * nimHasNilChecks deadcode * nimSymKind deadcode * minor macros refactoring * nimVmEqIdent deadcode * nimNoNil deadcode * nimNoZeroTerminator deadcode * nimHasSymOwnerInMacro deadcode * nimVmExportFixed deadcode * nimNewRuntime deadcode * nimAshr deadcode * nimUncheckedArrayTyp deadcode * nimHasTypeof deadcode * nimErrorProcCanHaveBody deadcode * nimHasHotCodeReloading deadcode * nimHasSignatureHashInMacro deadcode * nimHasDefault deadcode * nimMacrosSizealignof deadcode
* 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
|