comp.lang.ada
 help / color / mirror / Atom feed
* gnatcoll_db2ada problem "Database not supported:"
@ 2019-12-27 10:48 George J
  2019-12-27 11:26 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 3+ messages in thread
From: George J @ 2019-12-27 10:48 UTC (permalink / raw)


Hi all!
I'm trying to create an Ada app to work with database, so i've installed gnatcoll-db, gnatcoll_db2ada. I have simple database created with sqlite3. I've read tutorials on the adacore (https://docs.adacore.com/gnatcoll-docs/sql.html) but sorry, i can't understand one simple moment. I've got that we can create the representation of the database with the Ada package view. It's cool. But how can we get this? I can make this only using file as in exapmle:

| TABLE | customers     | customer        || The customer for the library |
| id    | AUTOINCREMENT | PK              || Auto-generated id            |
| first | TEXT          | NOT NULL        || Customers' first name        |
| last  | TEXT          | NOT NULL, INDEX || Customers' last name         |

but when i'm tring to do with simple created database: 
gnatcoll_db2ada -dbname test.db
i'm getting : 
Database not supported:

And my question is. What if i already have some big database and want to create an Ada app to work with. Can i work with it in the same way? May be i don't know something. Or i can work with db file with connecting to him and send direct SQL queries? I've never worked with databases with Ada so this theme is very difficult for me now. But interesting)
Thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-27 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-27 10:48 gnatcoll_db2ada problem "Database not supported:" George J
2019-12-27 11:26 ` Dmitry A. Kazakov
2019-12-27 15:39   ` George J

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox