I want to create a repository of books with access via a web interface. I plan to use the Restas framework (CL language). I choose sqlite as the database engine (for single access). A module has been designed for accessing tables in database already. This module has a following functional: adding a new book, finding a book, getting books from the database and others. But I need to add a function (or functions) to get paths to books from the file system. The tables will be created in memory that would be permited easy testing.
For example:
You can to use all operations after that without creating a database`s file.
The next step is creating a user interface. The interface will be simple, because the web technology is new for me. The source code is located on github.
For example:
(in-package #:library-app)
(defparameter *db* (make-instance 'library-db :db-path ":memory:"))
(execute-non-query (slot-value *db* 'db-connect) "create table users (id integer primary key, user_name text not null, password text not null)")
You can to use all operations after that without creating a database`s file.
The next step is creating a user interface. The interface will be simple, because the web technology is new for me. The source code is located on github.
Комментариев нет:
Отправить комментарий