agoralar-source-sql 0.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agora_source_sql/__init__.py +318 -0
- agoralar_source_sql-0.2.3.dist-info/METADATA +62 -0
- agoralar_source_sql-0.2.3.dist-info/RECORD +7 -0
- agoralar_source_sql-0.2.3.dist-info/WHEEL +5 -0
- agoralar_source_sql-0.2.3.dist-info/entry_points.txt +2 -0
- agoralar_source_sql-0.2.3.dist-info/licenses/LICENSE +21 -0
- agoralar_source_sql-0.2.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
"""SQL (sqlite3, только чтение) как источник объектов AxisLar.
|
|
2
|
+
|
|
3
|
+
Таблица или `SELECT` превращаются в объекты: колонки ключа дают
|
|
4
|
+
естественный ключ (`entity_id_for`), колонки-оси — фасеты, колонки-скаляры
|
|
5
|
+
— текстовые поля. `NULL` — не значение, а **отсутствие**: фасет не
|
|
6
|
+
создаётся (ADR-0010 ядра), поэтому разреженность источника сохраняется как
|
|
7
|
+
есть, без «дефолтов» и пустых строк.
|
|
8
|
+
|
|
9
|
+
Раскладка колонок задаётся явно. Продукт не угадывает, что станет осью, а
|
|
10
|
+
что скаляром: адаптер сообщает, а не решает молча (ADR-0016 ядра).
|
|
11
|
+
Рассогласования (пустой ключ, нечисловое значение у `measurable`) попадают
|
|
12
|
+
в `warnings`; строка остаётся импортируемой, если у неё есть ключ.
|
|
13
|
+
|
|
14
|
+
`content_hash` считается по каноническому JSON значений тех колонок,
|
|
15
|
+
которые попали в объект, — этого хватает синхронизации, чтобы отличить
|
|
16
|
+
изменение данных от переименования (ADR-0016/0017 ядра).
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from __future__ import annotations
|
|
20
|
+
|
|
21
|
+
import hashlib
|
|
22
|
+
import json
|
|
23
|
+
import sqlite3
|
|
24
|
+
from collections.abc import AsyncIterator, Iterable, Mapping
|
|
25
|
+
from dataclasses import dataclass, field
|
|
26
|
+
from pathlib import Path
|
|
27
|
+
from typing import Any
|
|
28
|
+
|
|
29
|
+
from axislar_core.contracts import (
|
|
30
|
+
CategoricalValue,
|
|
31
|
+
Entity,
|
|
32
|
+
EntityId,
|
|
33
|
+
FacetOwner,
|
|
34
|
+
FacetValue,
|
|
35
|
+
IEntitySource,
|
|
36
|
+
MeasurableValue,
|
|
37
|
+
Origin,
|
|
38
|
+
ReferenceValue,
|
|
39
|
+
entity_id_for,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
#: Контракт ядра, с которым совместим плагин.
|
|
43
|
+
REQUIRES_CONTRACT = ">=5,<6"
|
|
44
|
+
|
|
45
|
+
#: Вид объекта, если он не задан в настройках.
|
|
46
|
+
DEFAULT_KIND = "row"
|
|
47
|
+
|
|
48
|
+
#: Колонка (или колонки) естественного ключа по умолчанию.
|
|
49
|
+
DEFAULT_KEY = ("id",)
|
|
50
|
+
|
|
51
|
+
#: Разделитель частей естественного ключа (unit separator).
|
|
52
|
+
KEY_SEPARATOR = "\x1f"
|
|
53
|
+
|
|
54
|
+
#: Сколько строк забирать из курсора за раз.
|
|
55
|
+
DEFAULT_BATCH = 500
|
|
56
|
+
|
|
57
|
+
#: Алгоритм хэша содержимого строки.
|
|
58
|
+
HASH_ALGO = "sha256-row-json"
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class SqlSourceError(RuntimeError):
|
|
62
|
+
"""Источник не может прочитать данные: файл, SQL, отсутствие колонок."""
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@dataclass(slots=True)
|
|
66
|
+
class SqlSource(IEntitySource):
|
|
67
|
+
"""Источник поверх таблицы или запроса sqlite."""
|
|
68
|
+
|
|
69
|
+
path: Path
|
|
70
|
+
source_id: str
|
|
71
|
+
table: str | None = None
|
|
72
|
+
query: str | None = None
|
|
73
|
+
kind: str = DEFAULT_KIND
|
|
74
|
+
key: tuple[str, ...] = DEFAULT_KEY
|
|
75
|
+
axes: tuple[str, ...] = ()
|
|
76
|
+
measurable: tuple[str, ...] = ()
|
|
77
|
+
reference: Mapping[str, str] = field(default_factory=dict)
|
|
78
|
+
scalars: tuple[str, ...] = ()
|
|
79
|
+
multi: Mapping[str, str] = field(default_factory=dict)
|
|
80
|
+
hash_columns: tuple[str, ...] = ()
|
|
81
|
+
batch: int = DEFAULT_BATCH
|
|
82
|
+
warnings: list[str] = field(default_factory=list)
|
|
83
|
+
|
|
84
|
+
def describe(self) -> str:
|
|
85
|
+
where = f"table={self.table}" if self.table is not None else f"query={self.query}"
|
|
86
|
+
return f"sql:{self.path} ({where}, source_id={self.source_id})"
|
|
87
|
+
|
|
88
|
+
async def scan(self) -> AsyncIterator[Entity]:
|
|
89
|
+
self.warnings = []
|
|
90
|
+
string = self._statement()
|
|
91
|
+
try:
|
|
92
|
+
connection = sqlite3.connect(f"file:{self.path}?mode=ro", uri=True)
|
|
93
|
+
except sqlite3.Error as error: # pragma: no cover - зависит от sqlite
|
|
94
|
+
raise SqlSourceError(f"cannot open sqlite {self.path}: {error}") from error
|
|
95
|
+
try:
|
|
96
|
+
connection.row_factory = sqlite3.Row
|
|
97
|
+
cursor = connection.execute(string)
|
|
98
|
+
self._check_columns(cursor.description)
|
|
99
|
+
while True:
|
|
100
|
+
rows = cursor.fetchmany(self.batch)
|
|
101
|
+
if not rows:
|
|
102
|
+
return
|
|
103
|
+
for row in rows:
|
|
104
|
+
entity = self._build(row)
|
|
105
|
+
if entity is not None:
|
|
106
|
+
yield entity
|
|
107
|
+
except sqlite3.Error as error:
|
|
108
|
+
raise SqlSourceError(f"sqlite error on {self.describe()}: {error}") from error
|
|
109
|
+
finally:
|
|
110
|
+
connection.close()
|
|
111
|
+
|
|
112
|
+
# ------------------------------------------------------------- построение
|
|
113
|
+
|
|
114
|
+
def _statement(self) -> str:
|
|
115
|
+
if self.query is not None:
|
|
116
|
+
return self.query
|
|
117
|
+
assert self.table is not None # гарантирует create()
|
|
118
|
+
columns = ", ".join(f'"{name}"' for name in self.key)
|
|
119
|
+
return f'SELECT * FROM "{self.table}" ORDER BY {columns}'
|
|
120
|
+
|
|
121
|
+
def _check_columns(self, description: Iterable[Any] | None) -> None:
|
|
122
|
+
available = {str(item[0]) for item in description or ()}
|
|
123
|
+
required = self._mapped_columns()
|
|
124
|
+
missing = sorted(required - available)
|
|
125
|
+
if missing:
|
|
126
|
+
raise SqlSourceError(
|
|
127
|
+
f"{self.describe()}: нет колонок {', '.join(missing)}; доступны: "
|
|
128
|
+
f"{', '.join(sorted(available)) or '<нет>'}"
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
def _mapped_columns(self) -> set[str]:
|
|
132
|
+
columns = set(self.key) | set(self.axes) | set(self.measurable) | set(self.scalars)
|
|
133
|
+
columns |= set(self.reference)
|
|
134
|
+
return columns
|
|
135
|
+
|
|
136
|
+
def _build(self, row: sqlite3.Row) -> Entity | None:
|
|
137
|
+
key_parts: list[str] = []
|
|
138
|
+
for column in self.key:
|
|
139
|
+
raw = row[column]
|
|
140
|
+
if raw is None:
|
|
141
|
+
self.warnings.append(f"строка пропущена: ключевая колонка {column!r} пуста")
|
|
142
|
+
return None
|
|
143
|
+
key_parts.append(text(raw))
|
|
144
|
+
key = KEY_SEPARATOR.join(key_parts)
|
|
145
|
+
|
|
146
|
+
facets: dict[str, tuple[FacetValue, ...]] = {}
|
|
147
|
+
for column in self.axes:
|
|
148
|
+
values = self._categorical(row, column)
|
|
149
|
+
if values:
|
|
150
|
+
facets[column] = values
|
|
151
|
+
for column in self.measurable:
|
|
152
|
+
value = self._measurable(row, column, key)
|
|
153
|
+
if value is not None:
|
|
154
|
+
facets[column] = (value,)
|
|
155
|
+
for column in self.reference:
|
|
156
|
+
raw = row[column]
|
|
157
|
+
if raw is None:
|
|
158
|
+
continue
|
|
159
|
+
facets[column] = (ReferenceValue(target=EntityId(text(raw))),)
|
|
160
|
+
facet_axes = set(facets)
|
|
161
|
+
|
|
162
|
+
scalars: dict[str, str] = {}
|
|
163
|
+
for column in self.scalars:
|
|
164
|
+
raw = row[column]
|
|
165
|
+
if raw is not None:
|
|
166
|
+
scalars[column] = text(raw)
|
|
167
|
+
|
|
168
|
+
return Entity(
|
|
169
|
+
id=entity_id_for(self.source_id, key),
|
|
170
|
+
kind=self.kind,
|
|
171
|
+
scalars=scalars,
|
|
172
|
+
facets=facets,
|
|
173
|
+
owners=dict.fromkeys(facet_axes, FacetOwner.SOURCE),
|
|
174
|
+
origin=Origin(
|
|
175
|
+
source_id=self.source_id,
|
|
176
|
+
key=key,
|
|
177
|
+
content_hash=self._content_hash(row),
|
|
178
|
+
hash_algo=HASH_ALGO,
|
|
179
|
+
),
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
def _categorical(self, row: sqlite3.Row, column: str) -> tuple[FacetValue, ...]:
|
|
183
|
+
raw = row[column]
|
|
184
|
+
if raw is None:
|
|
185
|
+
return ()
|
|
186
|
+
separator = self.multi.get(column)
|
|
187
|
+
if separator is None:
|
|
188
|
+
return (CategoricalValue(value=text(raw)),)
|
|
189
|
+
pieces = [piece.strip() for piece in text(raw).split(separator)]
|
|
190
|
+
return tuple(CategoricalValue(value=piece) for piece in pieces if piece)
|
|
191
|
+
|
|
192
|
+
def _measurable(self, row: sqlite3.Row, column: str, key: str) -> FacetValue | None:
|
|
193
|
+
raw = row[column]
|
|
194
|
+
if raw is None:
|
|
195
|
+
return None
|
|
196
|
+
try:
|
|
197
|
+
number = float(raw)
|
|
198
|
+
except (TypeError, ValueError):
|
|
199
|
+
self.warnings.append(f"{key}: колонка {column!r} не число ({raw!r}), фасет пропущен")
|
|
200
|
+
return None
|
|
201
|
+
return MeasurableValue(value=number)
|
|
202
|
+
|
|
203
|
+
def _content_hash(self, row: sqlite3.Row) -> str:
|
|
204
|
+
columns = self.hash_columns or tuple(sorted(self._mapped_columns()))
|
|
205
|
+
payload = {column: canonical(row[column]) for column in columns}
|
|
206
|
+
blob = json.dumps(payload, ensure_ascii=False, sort_keys=True, separators=(",", ":"))
|
|
207
|
+
return hashlib.sha256(blob.encode("utf-8")).hexdigest()
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
# ------------------------------------------------------------------- утилиты
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
def text(value: object) -> str:
|
|
214
|
+
"""Значение колонки как текст: байты — hex, остальное — `str`."""
|
|
215
|
+
if isinstance(value, bytes):
|
|
216
|
+
return value.hex()
|
|
217
|
+
return str(value)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
def canonical(value: object) -> object:
|
|
221
|
+
"""Значение, пригодное для канонического JSON (стабильный хэш)."""
|
|
222
|
+
if isinstance(value, bytes):
|
|
223
|
+
return value.hex()
|
|
224
|
+
if isinstance(value, float) and value.is_integer():
|
|
225
|
+
return int(value)
|
|
226
|
+
return value
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
def _as_tuple(value: object, *, name: str) -> tuple[str, ...]:
|
|
230
|
+
if value is None:
|
|
231
|
+
return ()
|
|
232
|
+
if isinstance(value, str):
|
|
233
|
+
return (value,)
|
|
234
|
+
if not isinstance(value, list | tuple):
|
|
235
|
+
raise ValueError(f"sql source: {name} must be a list of column names")
|
|
236
|
+
return tuple(str(item) for item in value)
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
def _as_mapping(value: object, *, name: str) -> dict[str, str]:
|
|
240
|
+
if value is None:
|
|
241
|
+
return {}
|
|
242
|
+
if not isinstance(value, Mapping):
|
|
243
|
+
raise ValueError(f"sql source: {name} must be a table")
|
|
244
|
+
return {str(key): str(item) for key, item in value.items()}
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
def create(options: Mapping[str, Any]) -> SqlSource:
|
|
248
|
+
"""Фабрика из настроек плагина (конфиг + CLI)."""
|
|
249
|
+
path = options.get("path")
|
|
250
|
+
source_id = options.get("source_id")
|
|
251
|
+
if not path:
|
|
252
|
+
raise ValueError("sql source requires 'path'")
|
|
253
|
+
if not source_id:
|
|
254
|
+
raise ValueError("sql source requires 'source_id'")
|
|
255
|
+
|
|
256
|
+
table = options.get("table")
|
|
257
|
+
query = options.get("query")
|
|
258
|
+
if bool(table) == bool(query):
|
|
259
|
+
raise ValueError("sql source requires exactly one of 'table' or 'query'")
|
|
260
|
+
|
|
261
|
+
key = _as_tuple(options.get("key"), name="key") or DEFAULT_KEY
|
|
262
|
+
axes = _as_tuple(options.get("axes"), name="axes")
|
|
263
|
+
measurable = _as_tuple(options.get("measurable"), name="measurable")
|
|
264
|
+
scalars = _as_tuple(options.get("scalars"), name="scalars")
|
|
265
|
+
reference = _as_mapping(options.get("reference"), name="reference")
|
|
266
|
+
multi = _as_mapping(options.get("multi"), name="multi")
|
|
267
|
+
|
|
268
|
+
mapped = list(axes) + list(measurable) + list(scalars) + list(reference)
|
|
269
|
+
duplicated = sorted({column for column in mapped if mapped.count(column) > 1})
|
|
270
|
+
if duplicated:
|
|
271
|
+
raise ValueError("sql source: column mapped more than once: " + ", ".join(duplicated))
|
|
272
|
+
unknown_multi = sorted(set(multi) - set(axes))
|
|
273
|
+
if unknown_multi:
|
|
274
|
+
raise ValueError(
|
|
275
|
+
"sql source: 'multi' is allowed only for categorical axes: " + ", ".join(unknown_multi)
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
hash_columns = _as_tuple(options.get("hash"), name="hash")
|
|
279
|
+
batch = options.get("batch", DEFAULT_BATCH)
|
|
280
|
+
if not isinstance(batch, int) or batch <= 0:
|
|
281
|
+
raise ValueError("sql source: 'batch' must be a positive integer")
|
|
282
|
+
|
|
283
|
+
return SqlSource(
|
|
284
|
+
path=Path(str(path)),
|
|
285
|
+
source_id=str(source_id),
|
|
286
|
+
table=str(table) if table else None,
|
|
287
|
+
query=str(query) if query else None,
|
|
288
|
+
kind=str(options.get("kind") or DEFAULT_KIND),
|
|
289
|
+
key=key,
|
|
290
|
+
axes=axes,
|
|
291
|
+
measurable=measurable,
|
|
292
|
+
reference=reference,
|
|
293
|
+
scalars=scalars,
|
|
294
|
+
multi=multi,
|
|
295
|
+
hash_columns=hash_columns,
|
|
296
|
+
batch=batch,
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
def plugin() -> dict[str, Any]:
|
|
301
|
+
"""Манифест плагина обычными данными (ADR-0013)."""
|
|
302
|
+
return {"requires_contract": REQUIRES_CONTRACT, "factory": create}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
__all__ = [
|
|
306
|
+
"DEFAULT_BATCH",
|
|
307
|
+
"DEFAULT_KEY",
|
|
308
|
+
"DEFAULT_KIND",
|
|
309
|
+
"HASH_ALGO",
|
|
310
|
+
"KEY_SEPARATOR",
|
|
311
|
+
"REQUIRES_CONTRACT",
|
|
312
|
+
"SqlSource",
|
|
313
|
+
"SqlSourceError",
|
|
314
|
+
"canonical",
|
|
315
|
+
"create",
|
|
316
|
+
"plugin",
|
|
317
|
+
"text",
|
|
318
|
+
]
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agoralar-source-sql
|
|
3
|
+
Version: 0.2.3
|
|
4
|
+
Summary: SQL (sqlite) как источник объектов для AxisLar (плагин AgoraLar)
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Source, https://github.com/authorlarciss/AgoraLar/tree/HEAD/plugins/source_sql
|
|
7
|
+
Project-URL: Kernel, https://github.com/authorlarciss/AxisLar
|
|
8
|
+
Requires-Python: <3.15,>=3.13
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: axislar-core<0.13,>=0.12
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
14
|
+
Requires-Dist: pytest-asyncio>=0.24; extra == "dev"
|
|
15
|
+
Requires-Dist: mypy>=1.10; extra == "dev"
|
|
16
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# agoralar-source-sql
|
|
20
|
+
|
|
21
|
+
Источник объектов для [AxisLar](https://github.com/authorlarciss/AxisLar):
|
|
22
|
+
таблица или `SELECT` в sqlite раскладывается по осям и скалярам.
|
|
23
|
+
|
|
24
|
+
Плагин продукта [AgoraLar](https://github.com/authorlarciss/AgoraLar).
|
|
25
|
+
База открывается **только на чтение** (`mode=ro`): источник ничего не
|
|
26
|
+
пишет.
|
|
27
|
+
|
|
28
|
+
```toml
|
|
29
|
+
[plugins.sql]
|
|
30
|
+
path = "/data/export.db" # файл sqlite
|
|
31
|
+
table = "edits" # или query = "SELECT ... FROM ..."
|
|
32
|
+
source_id = "db-edits" # стабильный id источника, не путь
|
|
33
|
+
kind = "edit"
|
|
34
|
+
key = ["id"] # естественный ключ → entity_id_for
|
|
35
|
+
|
|
36
|
+
axes = ["author", "genre"] # категориальные оси
|
|
37
|
+
multi = { genre = "," } # значения через запятую → мультизначность
|
|
38
|
+
measurable = ["year"] # измеримые оси (числа)
|
|
39
|
+
reference = { editor = "person" } # ссылочные оси: колонка → вид цели
|
|
40
|
+
scalars = ["title"] # текстовые поля
|
|
41
|
+
hash = ["title", "author", "genre", "year", "editor"] # по умолчанию — все
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Правила:
|
|
45
|
+
|
|
46
|
+
- **`NULL` — это отсутствие значения**, а не пустое: фасет не создаётся,
|
|
47
|
+
объект остаётся разреженным (ADR-0010 ядра). Скаляр с `NULL` тоже не
|
|
48
|
+
пишется.
|
|
49
|
+
- Колонка не может быть объявлена дважды (ось и скаляр одновременно);
|
|
50
|
+
`multi` допустим только для категориальных осей.
|
|
51
|
+
- Строка без значения в ключевой колонке пропускается с предупреждением.
|
|
52
|
+
- Нечисловое значение у `measurable` даёт предупреждение и пропуск фасета;
|
|
53
|
+
строка импортируется.
|
|
54
|
+
- `content_hash` считается по каноническому JSON значений **сопоставленных**
|
|
55
|
+
колонок: изменение неиспользуемой колонки не считается изменением
|
|
56
|
+
объекта.
|
|
57
|
+
- `id` = `entity_id_for(source_id, key)`, где `key` — значения ключевых
|
|
58
|
+
колонок через unit separator (`\x1f`). Переименование строки = новый
|
|
59
|
+
`id`; синхронизация узнаёт переезд по `content_hash`.
|
|
60
|
+
|
|
61
|
+
Проверки плагина — `run_source_sync_contract` из ядра: тот же набор,
|
|
62
|
+
который обязаны проходить все источники.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
agora_source_sql/__init__.py,sha256=X-KGuIVwhXD87rY86zZj8AshI07Ygcny48HR4qm952k,12276
|
|
2
|
+
agoralar_source_sql-0.2.3.dist-info/licenses/LICENSE,sha256=Yu5isJQWAEfcgXgtHntFHNSDWzXKIDmrsBOqoO07wlc,1070
|
|
3
|
+
agoralar_source_sql-0.2.3.dist-info/METADATA,sha256=HM1a8j9R3EnH3qU675OxITusuaFSvZvl5HVn-uJKVWM,3518
|
|
4
|
+
agoralar_source_sql-0.2.3.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
5
|
+
agoralar_source_sql-0.2.3.dist-info/entry_points.txt,sha256=1dhWmuenOADb-St58uJndysEbMmFo5e3KxLTogk9DVc,48
|
|
6
|
+
agoralar_source_sql-0.2.3.dist-info/top_level.txt,sha256=4QwEP3hliT-yhhHEQcV7_4MEfKUlf7_4P5fP11Q1CUU,17
|
|
7
|
+
agoralar_source_sql-0.2.3.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 authorlarciss
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
agora_source_sql
|