No Clocks

No Clocks

2698 bookmarks
Newest
PostgreSQL Sequences
PostgreSQL Sequences
In this tutorial, you will learn about the PostgreSQL sequences and how to use a sequence object to generate a sequence of numbers.
In PostgreSQL, a sequence is a database object that allows you to generate a sequence of unique integers. Typically, you use a sequence to generate a unique identifier for a primary key in a table. Additionally, you can use a sequence to generate unique numbers across tables. To create a new sequence, you use the CREATE SEQUENCE statement.
Listing all sequences in a database To list all sequences in the current database, you use the following query: SELECT relname sequence_name FROM pg_class WHERE relkind = 'S';
·neon.tech·
PostgreSQL Sequences
PostgreSQL Identity Column
PostgreSQL Identity Column
This tutorial shows you how to use the GENERATED AS IDENTITY constraint to create the PostgreSQL identity column for a table.
PostgreSQL version 10 introduced a new constraint GENERATED AS IDENTITY that allows you to automatically assign a unique number to a column.
The GENERATED AS IDENTITY constraint is the SQL standard-conforming variant of the good old SERIAL column.
The following illustrates the syntax of the GENERATED AS IDENTITY constraint: column_name type GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY[ ( sequence_option ) ]
In this syntax: The type can be SMALLINT, INT, or BIGINT. The GENERATED ALWAYS instructs PostgreSQL to always generate a value for the identity column. If you attempt to insert (or update) values into the GENERATED ALWAYS AS IDENTITY column, PostgreSQL will issue an error. The GENERATED BY DEFAULT instructs PostgreSQL to generate a value for the identity column. However, if you supply a value for insert or update, PostgreSQL will use that value to insert into the identity column instead of using the system-generated value.
PostgreSQL allows a table to have more than one identity column. Like the SERIAL, the GENERATED AS IDENTITY constraint also uses the SEQUENCE object internally.
To fix the error, you can use the OVERRIDING SYSTEM VALUE clause as follows: INSERT INTO color (color_id, color_name) OVERRIDING SYSTEM VALUE VALUES(2, 'Green');
Alternatively, you can use GENERATED BY DEFAULT AS IDENTITY instead.
Because the GENERATED AS IDENTITY constraint uses the SEQUENCE object, you can specify the sequence options for the system-generated values.
For example, you can specify the starting value and the increment as follows: DROP TABLE color; CREATE TABLE color ( color_id INT GENERATED BY DEFAULT AS IDENTITY (START WITH 10 INCREMENT BY 10), color_name VARCHAR NOT NULL );
In this example, the system-generated value for the color_id column starts with 10 and the increment value is also 10.
·neon.tech·
PostgreSQL Identity Column
{relay}: an R Package for workflows
{relay}: an R Package for workflows
If I was being presumptuous, I would assume that the R programming language is primarily used for scripting tasks, especially in the field of Public Health. The R language is definitely capable of more complex tasks but, in terms of day-to-day use, creating scripts is most commonplace. Part of this is because R excels in this area, making it very easy for data analysts and epidemiologists to create reports quickly without the requirement to deeply understand software engineering principles and concepts.
·allenobrien.com·
{relay}: an R Package for workflows
AI Data Flow Diagram Generator
AI Data Flow Diagram Generator
Generate beautiful data flow diagrams in seconds from plain English or code snippet prompts. Use AI to make and edit data flow diagrams. Try Eraser's AI data flow diagram maker for free.
·eraser.io·
AI Data Flow Diagram Generator
AI Architecture Diagram Generator
AI Architecture Diagram Generator
Generate beautiful architecture diagrams in seconds from plain English or code snippet prompts. Use AI to make and edit architecture diagrams. Try Eraser's AI architecture diagram maker for free.
·eraser.io·
AI Architecture Diagram Generator
Retrieval-Augmented Generation (RAG) Workflows
Retrieval-Augmented Generation (RAG) Workflows
Provides tools for implementing Retrieval-Augmented Generation (RAG) workflows with Large Language Models (LLMs). Includes functions for document processing, text chunking, embedding generation, storage management, and content retrieval. Supports various document types and embedding providers (Ollama, OpenAI), with DuckDB as the default storage backend. Integrates with the ellmer package to equip chat objects with retrieval capabilities. Designed to offer both sensible defaults and customization options with transparent access to intermediate outputs.
·tidyverse.github.io·
Retrieval-Augmented Generation (RAG) Workflows
My LLM codegen workflow atm
My LLM codegen workflow atm
A detailed walkthrough of my current workflow for using LLms to build software, from brainstorming through planning and execution.
·harper.blog·
My LLM codegen workflow atm
Github-Ranking/Top100/R.md at master · EvanLi/Github-Ranking
Github-Ranking/Top100/R.md at master · EvanLi/Github-Ranking
:star:Github Ranking:star: Github stars and forks ranking list. Github Top100 stars list of different languages. Automatically update daily. | Github仓库排名,每日自动更新 - EvanLi/Github-Ranking
·github.com·
Github-Ranking/Top100/R.md at master · EvanLi/Github-Ranking
reg.finalizer function - RDocumentation
reg.finalizer function - RDocumentation
Registers an R function to be called upon garbage collection of object or (optionally) at the end of an R session.
·rdocumentation.org·
reg.finalizer function - RDocumentation
⚾ Fantasy League Lineup Pro 🏆-Free AI-Powered Fantasy Baseball
⚾ Fantasy League Lineup Pro 🏆-Free AI-Powered Fantasy Baseball
Optimize your fantasy baseball lineup with ⚾ Fantasy League Lineup Pro 🏆. Utilize AI for player analysis, real-time updates, and strategic lineup decisions in a user-friendly interface.
·yeschat.ai·
⚾ Fantasy League Lineup Pro 🏆-Free AI-Powered Fantasy Baseball
https://blog.routinehub.co/ai-store-the-ultimate-hub-for-discovering-ai-shortcuts/
https://blog.routinehub.co/ai-store-the-ultimate-hub-for-discovering-ai-shortcuts/
For AI shortcut enthusiasts, the tool that will help you stay up-to-date with all the available AI shortcuts has finally arrived. AI Store, developed by @__MIKL__, is the ultimate tool for exploring, downloading, and managing the latest AI projects within the RoutineHub community. With AI Store, you have instant access to a constantly growing database, directly from your device, without the need to search through multiple sources. AI Store AI Store allows users to view AI-based shortcuts, s
·blog.routinehub.co·
https://blog.routinehub.co/ai-store-the-ultimate-hub-for-discovering-ai-shortcuts/
Generate llms.txt
Generate llms.txt
Generate llms.txt for any website
·llmstxt.firecrawl.dev·
Generate llms.txt
Code Search | Grep by Vercel
Code Search | Grep by Vercel
Search for code, files, and paths across half a million public GitHub repositories.
·grep.app·
Code Search | Grep by Vercel
Memory Bank: How to Make Cline an AI Agent That Never Forgets - Cline Blog
Memory Bank: How to Make Cline an AI Agent That Never Forgets - Cline Blog
Imagine a detective who loses his memory every time he falls asleep. To solve cases, he develops an ingenious system: tattooing critical facts on his body and keeping a carefully organized set of Polaroid photos. Each time he wakes up, he can quickly rebuild his understanding by following his own documentation system. That's the plot of Memento, and it inspired how we solved a common problem with AI coding assistants. Dont Believe His Lies Memento GIFfrom Dont Believe His Lies GIFs Here's
·cline.bot·
Memory Bank: How to Make Cline an AI Agent That Never Forgets - Cline Blog