InternetSQL / ISQL - LICENCE

Copyright (c) 2026 Muhammad Anisur Rahman. All rights reserved.

This package has two kinds of thing in it and they are not licensed alike, so
this licence has two parts. Part A covers the compiled programs and libraries;
Part B covers everything you are expected to read, compile or copy.

THE TEST, so that no file is in doubt: if it is a compiled program or library -
a .exe, .dll, .so, .lib or .a, wherever it sits - it is under Part A. EVERYTHING
ELSE in this package is under Part B.

There is NO CHARGE for this package. Nothing in it requires a purchase, a
registration, a key or a licence server, and no royalty is payable on anything
you build or sell with it.

===============================================================================
PART A - THE COMPILED ENGINE, SHELLS AND LIBRARIES
===============================================================================

Covers: every compiled program and library in this package - the engine DLL and
static library, the shells, the server, the vector and MCP tools, and anything
else supplied as a .exe, .dll, .so, .lib or .a. In this drop they are under bin/
and lib/.

A1. WHAT YOU MAY DO

    a. Use them for any purpose, personal, academic or commercial.
    b. Embed the engine in your own application, and sell that application.
    c. Run them on as many machines as you like, for as many users as you like.
    d. Redistribute them, by themselves or inside your own product, including
       a product you charge money for.
    e. Make as many copies as you need.

A2. CONDITIONS

    a. Redistribute them UNMODIFIED, and keep this file and the COPYRIGHT file
       with them.
    b. Do not remove or alter the copyright notices.
    c. Do not reverse engineer, decompile or disassemble them, and do not try to
       reconstruct their source, except to the extent that applicable law
       expressly permits despite this condition.
    d. Do not present them as your own work, and do not use the author's name to
       promote your product without written permission.

A3. THE ENGINE SOURCE IS NOT INCLUDED

    The source of the database engine is not supplied and this licence grants no
    right to it. Binary distribution is deliberate: it is what allows the engine
    to be given away at no charge while remaining unpublished.

===============================================================================
PART B - HEADERS, EXAMPLES, DOCUMENTATION AND SUPPLIED SOURCE
===============================================================================

Covers everything that is not a compiled program or library. In the drops
published so far that is:

    include/            the public headers, and newpwd.c with newpwd.h - the
                        SHA-256 and password hashing an application compiles
                        into itself, as HOWTO_BUILD_C_APP.md describes
    examples/           every example program and SQL script
    doc/ or docs/       the manuals and release notes
    python/             the Python binding and its examples
    config/             the example configuration files
    ICPP/               the interpreter's own documentation and examples
    any other source supplied deliberately, such as iwebserver and kzip
    README, QUICKSTART and the release notes

The list is an aid, not the rule. The rule is the test at the top of this file:
anything that is not a compiled program or library is under Part B.

B1. TERMS

    Permission is granted, free of charge, to any person obtaining a copy of
    these files, to use, copy, modify, merge, publish, distribute, sublicense
    and/or sell copies of them, and to permit persons to whom they are furnished
    to do so, subject to the following conditions:

    1. The above copyright notice and this permission notice must appear in all
       copies or substantial portions of the files.

    2. Neither the name of the author nor the name Chapai Systems may be used to
       endorse or promote products derived from these files without specific
       prior written permission.

B2. WHY THIS HALF IS OPEN

    An example that may not be copied is not an example, and a header you may
    not compile is not an interface. These files exist to be taken into your own
    project, so they are licensed to allow exactly that.

B3. WHAT IT DOES NOT COVER

    Nothing in Part B grants any right to the engine source, which is not part
    of this package, nor any right to modify the compiled programs or libraries
    in Part A.

===============================================================================
NO WARRANTY - APPLIES TO THE WHOLE PACKAGE
===============================================================================

THIS SOFTWARE AND ITS DOCUMENTATION ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR ITS USE.

This is database software: it writes to disk and it is what stands between an
application and its data. Test it against your own data, and keep backups you
have actually restored from. The documentation states the known limitations
rather than hiding them; read them before relying on the engine in production.

===============================================================================
IF THIS LICENCE IS NOT ENOUGH
===============================================================================

If your situation needs terms this licence does not give - a warranty, an
indemnity, source access, support with a response time, or permission to modify
the binaries - those are available separately. Ask.

Contact: https://chapai.ai
