Update Kotlin 2.3.20/ Java 25

This commit is contained in:
Hartmut Bauer committed 2026-04-06 02:05:57 +02:00
1 parent 093127e131
commit 5c8516a8a6
8 files changed
+162 -9

No files matched your search

+1
View File
@@ -59,6 +59,7 @@ dependencies {
implementation(libs.exposed.jdbc)
implementation(libs.exposed.dao)
implementation(libs.hikaricp)
implementation(libs.sqlite.jdbc)
testImplementation(libs.ktor.serverTestHost)
testImplementation(libs.kotlin.testJunit)
@@ -0,0 +1,150 @@
package net.keinekekse.app.server.books.calibre
/*
Database.connect("jdbc:sqlite:todo.db", driver = "org.sqlite.JDBC")
create table main.authors
(
id INTEGER
primary key,
name TEXT collate NOCASE not null
unique,
sort TEXT collate NOCASE,
link TEXT default "" not null
);
-----------
create table main.books
(
id INTEGER
primary key autoincrement,
title TEXT collate NOCASE default 'Unknown' not null,
sort TEXT collate NOCASE,
timestamp TIMESTAMP default CURRENT_TIMESTAMP,
pubdate TIMESTAMP default CURRENT_TIMESTAMP,
series_index REAL default 1.0 not null,
author_sort TEXT collate NOCASE,
isbn TEXT collate NOCASE default "",
lccn TEXT collate NOCASE default "",
path TEXT default "" not null,
flags INTEGER default 1 not null,
uuid TEXT,
has_cover BOOL default 0,
last_modified TIMESTAMP default "2000-01-01 00:00:00+00:00" not null
);
create index main.authors_idx
on main.books (author_sort);
create index main.books_idx
on main.books (sort);
-------------
create table main.series
(
id INTEGER
primary key,
name TEXT collate NOCASE not null
unique,
sort TEXT collate NOCASE,
link TEXT default '' not null
);
create index main.series_idx
on main.series (name);
----------------------
create table main.publishers
(
id INTEGER
primary key,
name TEXT collate NOCASE not null
unique,
sort TEXT collate NOCASE,
link TEXT default '' not null
);
create index main.publishers_idx
on main.publishers (name);
------------------
create table main.languages
(
id INTEGER
primary key,
lang_code TEXT NON collate NOCASE
unique,
link TEXT default '' not null
);
create index main.languages_idx
on main.languages (lang_code);
-----------------
create table main.identifiers
(
id INTEGER
primary key,
book INTEGER NON,
type TEXT NON collate NOCASE default "isbn",
val TEXT NON collate NOCASE,
unique (book, type)
);
------------------
create table main.books_authors_link
(
id INTEGER
primary key,
book INTEGER not null,
author INTEGER not null,
unique (book, author)
);
create index main.books_authors_link_aidx
on main.books_authors_link (author);
create index main.books_authors_link_bidx
on main.books_authors_link (book);
------------------------
create table main.books_languages_link
(
id INTEGER
primary key,
book INTEGER not null,
lang_code INTEGER not null,
item_order INTEGER default 0 not null,
unique (book, lang_code)
);
create index main.books_languages_link_aidx
on main.books_languages_link (lang_code);
create index main.books_languages_link_bidx
on main.books_languages_link (book);
---------------------
create table main.books_publishers_link
(
id INTEGER
primary key,
book INTEGER not null
unique,
publisher INTEGER not null
);
create index main.books_publishers_link_aidx
on main.books_publishers_link (publisher);
create index main.books_publishers_link_bidx
on main.books_publishers_link (book);
-------------------
create table main.books_series_link
(
id INTEGER
primary key,
book INTEGER not null
unique,
series INTEGER not null
);
create index main.books_series_link_aidx
on main.books_series_link (series);
create index main.books_series_link_bidx
on main.books_series_link (book);
*/