18 Commits

Author SHA1 Message Date
anisimko
9dadb68f7d GNATCOLL.SQL example
U108-018

Change-Id: Ic2be45cd8fa8457416129c1d0f09720d01a49a97
2021-01-10 16:40:35 +06:00
Vasiliy Fofanov
c067251840 Fix various typos and headers, bump copyright.
Motivated by github PR #14. no-tn-check

Change-Id: I866431c55fe0937f348d08cd8a188eb40fc8f061
2020-06-12 19:29:25 +02:00
Pierre-Marie de Rodat
523d0929ca Import documentation from the obsolete GNATcoll monorepo
Change-Id: I647360a2a2eeb1cba232be2c2b47434854bf2feb
TN: R329-046
2020-02-10 12:42:48 +01:00
Vasiliy Fofanov
ce99ac280e Initial version of gnatcoll-db module.
Part of major reorganization of gnatcoll for better modularity and
maintainability.

Change-Id: Iad961b53634520081eb90c37aff2bfdbf58b2e06
TN: P909-033 no-precommit-check
2017-10-29 15:30:27 +01:00
Emmanuel Briot
74b23fc109 Make the growth strategy configurable
Add documentation (based on blog post)

Q216-036

Change-Id: I5a8c3005b263ecf0f0a16c71743e7e355bb1ddc1
2017-03-18 19:25:50 +01:00
Emmanuel Briot
dde8725983 Make it easier to add new field types to GNATCOLL.SQL
We no longer use enumerated types to support the field types, which
makes it possible to add new types in third-party packages.

PB17-036
PB02-013

Change-Id: I520234e4e38401534a91632b781ef225aaee48d2
2016-11-23 16:02:51 +01:00
Thomas Quinot
f56b8a039e Support for generating image functions for db enums
P201-084

Change-Id: Idc7cf3c38f7ad401fce77da07ba41cae775dd5a8
2016-02-02 10:46:53 +01:00
Emmanuel Briot
8a33b8b32f Update version number to 17.0w
OA27-049

Change-Id: I3c535e02bb1ad060a8fddcefe756ca28ae7da11b
2015-10-28 10:34:28 +01:00
Dmitriy Anisimkov
1758b79bf0 Indexed direct cursors access.
J422-005

Task_Safe_Instance call moved from GNATCOLL.SQL.SQLite.Builder.Execute
routine to GNATCOLL.SQL.Exec.Execute_And_Log routine because we need
to put parameter Index_By there and it available only on
Execute_And_Log level. By the way we would not need to convert forward
cursors to direct cursors in DBMS drivers where direct cursors is not
supported.

* src/gnatcoll-sql-exec.ads:
(No_Field_Index): New constant.
(Find): New routines to find Integer and String field value.
(Prepare): Add Index_By parameter.

* src/gnatcoll-sql-exec.adb:
(Fetch_Internal): Direct flag calculation fixed. Types inherited from
 Direct_Cursor Direct too.
 

Change-Id: Ie853aa5cf45bca6ad9fd4ffa0de426b1f66857db
2015-09-22 09:28:17 +02:00
Dmitriy Anisimkov
35d19e6b6c Add unique constraint into schema description syntax.
O710-022 J422-005


Change-Id: I233ba3dcd145fbef7de2a771a6f312d85e0888c9
2015-07-13 15:07:12 +02:00
Emmanuel Briot
5d86bc45c4 Minor typo fix
Change-Id: Iae6cc58f5572509f03f4d98914994c0e27e5d793
2015-05-26 15:34:13 +02:00
Emmanuel Briot
dc488da13b revert -> reverse
MA30-059

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@227068 936e1b1b-40f2-da11-902a-00137254ae57
2014-05-05 08:27:35 +00:00
Emmanuel Briot
496113fd42 "revert relationship" -> "reverse relationship" (MA30-059)
Clarify in the grammar that this reverse name is optional (MA23-004)

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@218463 936e1b1b-40f2-da11-902a-00137254ae57
2013-11-04 13:26:00 +00:00
Nicolas Setton
d1187f5d84 Split long line.
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@203295 936e1b1b-40f2-da11-902a-00137254ae57
2013-02-28 13:25:25 +00:00
Emmanuel Briot
b113400cd9 (gnatcoll_db2ada): new switch -adacreate
This switch allows the generation of Create_Database, which recreates
 the database with no need for external files for the schema of the
 database or its initial data.
 In particular, this is used for the xref database, so that the
 GNATCOLL.API is standalone and does not need access to external
 files (while ensuring the consistency between the database schema
 that was used to generate the code and the one that was used to
 create the db).
L328-037

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@188308 936e1b1b-40f2-da11-902a-00137254ae57
2012-04-06 16:11:29 +00:00
Emmanuel Briot
b7f8d002dd (Insert_And_Get_PK): new subprogram
This is more efficient with postgreSQL than using Fetch+Last_Id.
 K921-016

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@187525 936e1b1b-40f2-da11-902a-00137254ae57
2012-03-26 14:48:06 +00:00
Emmanuel Briot
e3696e16ae Update doc for the new support of MONEY type in GNATCOLL.SQL.
Update testsuite
KC22-014

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@187437 936e1b1b-40f2-da11-902a-00137254ae57
2012-03-23 11:46:16 +00:00
Emmanuel Briot
12ed4b910d Convert GNATCOLL documentation to Sphinx
KB21-014

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@182073 936e1b1b-40f2-da11-902a-00137254ae57
2011-12-07 14:25:44 +00:00