> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kamu.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Generic ADBC Client

> Connecting client applications via ADBC protocol.

export const Diagram = ({src, alt}) => {
  return <div style={{
    display: "flex",
    "flex-direction": "column",
    "align-items": "center"
  }}>
    <img src={src} alt={alt} style={{
    background: "#dddddd",
    "margin-bottom": 0
  }} />
    <span>{alt}</span>
  </div>;
};

export const YouTubeList = ({id}) => {
  const src = `https://www.youtube.com/embed/videoseries?list=${id}`;
  return <iframe className="w-full aspect-video rounded-xl" src={src} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>;
};

export const YouTube = ({id, width}) => {
  const src = `https://www.youtube.com/embed/${id}`;
  return <iframe className="w-full aspect-video rounded-xl" src={src} allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen width={width}></iframe>;
};

export const Schema = ({t, id}) => {
  const anchor = id ? id : t.toLowerCase().replace(/\s+/g, "-");
  const link = `/odf/schemas#${anchor}`;
  return <a class="schema-object" href={link}>{t}</a>;
};

export const Term = ({t, id}) => {
  const anchor = id ? id : t.toLowerCase().replace(/\s+/g, "-");
  const link = `/general/glossary#${anchor}`;
  return <a class="glossary-term" href={link}>{t}</a>;
};

To connect any client that supports [Apache Arrow ADBC protocol](https://arrow.apache.org/adbc/current/index.html) follow these simple steps:

1. Run `kamu` Flight SQL server in a desired workspace:
   ```bash theme={null}
   kamu sql server --address 127.0.0.1 --port 50050
   ```
2. [Follow the steps](https://arrow.apache.org/adbc/current/index.html) for your specific language and environment to connect your ADBC client to FlightSQL server
3. Use `anonymous` as login and password for anonymous connection (if allowed by the node) or authenticate using a personal access token

An example is [available here](https://github.com/kamu-data/kamu-cli/blob/master/examples/flight-sql/python/client_flightsql_adbc.py) using Python.
