summary refs log tree commit diff stats
path: root/lib/impure
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* minor style changesAraq2019-07-111-2/+2
|
* [feature] add `unsafeColumnAt` procs, that return unsafe cstring from ↵Huy2019-07-104-1/+21
| | | | InstantRow (#11647)
* Render deprecated pragmas (#8886)LemonBoy2019-06-031-2/+2
| | | | | | | | | * Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random
* db_sqlite: Update documentation (#10330) (#11266)jiro2019-05-191-71/+359
|
* fixes #11139 (re.nim memory leak) (#11265)Miran2019-05-162-2/+1
| | | Use the same PCRE function for freeing up the memory as nre.nim does.
* Fix header inconsistencies in documentation (#11071)Zed2019-04-234-23/+23
|
* Documentation import fixes (#11070)Zed2019-04-211-12/+9
| | | | | | * Move asyncdispatch imports below introduction * Move nre imports below documentation
* live with the hacks, PCRE's design is crapAraq2019-03-192-3/+6
|
* pcre.nim: added pcre_free and removed hacks in nre and re.nimAndreas Rumpf2019-03-192-6/+3
|
* fix replacef typo in exampleKobi2019-02-131-1/+1
|
* Genode fixes (#10491)Emery Hemingway2019-01-291-0/+9
| | | Readline pasthru, add linker to config, do not pass -lm to linker.