mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
Harrison/align table (#1081)
Co-authored-by: Francisco Ingham <fpingham@gmail.com>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 3,
|
||||
"id": "d0e27d88",
|
||||
"metadata": {
|
||||
"pycharm": {
|
||||
@@ -43,7 +43,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"execution_count": 1,
|
||||
"id": "72ede462",
|
||||
"metadata": {
|
||||
"pycharm": {
|
||||
@@ -346,15 +346,46 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"CREATE TABLE [Album]\n",
|
||||
"(\n",
|
||||
" [AlbumId] INTEGER NOT NULL,\n",
|
||||
" [Title] NVARCHAR(160) NOT NULL,\n",
|
||||
" [ArtistId] INTEGER NOT NULL,\n",
|
||||
" CONSTRAINT [PK_Album] PRIMARY KEY ([AlbumId]),\n",
|
||||
" FOREIGN KEY ([ArtistId]) REFERENCES [Artist] ([ArtistId]) \n",
|
||||
"\t\tON DELETE NO ACTION ON UPDATE NO ACTION\n",
|
||||
")\n",
|
||||
"\n",
|
||||
" Table data will be described in the following format:\n",
|
||||
"SELECT * FROM 'Album' LIMIT 2\n",
|
||||
"AlbumId Title ArtistId\n",
|
||||
"1 For Those About To Rock We Salute You 1\n",
|
||||
"2 Balls to the Wall 2\n",
|
||||
"\n",
|
||||
" Table 'table name' has columns: {column1 name: (column1 type, [list of example values for column1]),\n",
|
||||
" column2 name: (column2 type, [list of example values for column2], ...)\n",
|
||||
"\n",
|
||||
" These are the tables you can use, together with their column information:\n",
|
||||
"CREATE TABLE [Track]\n",
|
||||
"(\n",
|
||||
" [TrackId] INTEGER NOT NULL,\n",
|
||||
" [Name] NVARCHAR(200) NOT NULL,\n",
|
||||
" [AlbumId] INTEGER,\n",
|
||||
" [MediaTypeId] INTEGER NOT NULL,\n",
|
||||
" [GenreId] INTEGER,\n",
|
||||
" [Composer] NVARCHAR(220),\n",
|
||||
" [Milliseconds] INTEGER NOT NULL,\n",
|
||||
" [Bytes] INTEGER,\n",
|
||||
" [UnitPrice] NUMERIC(10,2) NOT NULL,\n",
|
||||
" CONSTRAINT [PK_Track] PRIMARY KEY ([TrackId]),\n",
|
||||
" FOREIGN KEY ([AlbumId]) REFERENCES [Album] ([AlbumId]) \n",
|
||||
"\t\tON DELETE NO ACTION ON UPDATE NO ACTION,\n",
|
||||
" FOREIGN KEY ([GenreId]) REFERENCES [Genre] ([GenreId]) \n",
|
||||
"\t\tON DELETE NO ACTION ON UPDATE NO ACTION,\n",
|
||||
" FOREIGN KEY ([MediaTypeId]) REFERENCES [MediaType] ([MediaTypeId]) \n",
|
||||
"\t\tON DELETE NO ACTION ON UPDATE NO ACTION\n",
|
||||
")\n",
|
||||
"\n",
|
||||
" Table 'Track' has columns: {'TrackId': ['INTEGER', ['1', '2']], 'Name': ['NVARCHAR(200)', ['For Those About To Rock (We Salute You)', 'Balls to the Wall']], 'AlbumId': ['INTEGER', ['1', '2']], 'MediaTypeId': ['INTEGER', ['1', '2']], 'GenreId': ['INTEGER', ['1', '1']], 'Composer': ['NVARCHAR(220)', ['Angus Young, Malcolm Young, Brian Johnson', 'None']], 'Milliseconds': ['INTEGER', ['343719', '342562']], 'Bytes': ['INTEGER', ['11170334', '5510424']], 'UnitPrice': ['NUMERIC(10, 2)', ['0.99', '0.99']]}\n"
|
||||
"SELECT * FROM 'Track' LIMIT 2\n",
|
||||
"TrackId Name AlbumId MediaTypeId GenreId Composer Milliseconds Bytes UnitPrice\n",
|
||||
"1 For Those About To Rock (We Salute You) 1 1 1 Angus Young, Malcolm Young, Brian Johnson 343719 11170334 0.99\n",
|
||||
"2 Balls to the Wall 2 2 1 None 342562 5510424 0.99\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -492,9 +523,9 @@
|
||||
"lastKernelId": null
|
||||
},
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"display_name": "langchain",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
"name": "langchain"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
@@ -506,7 +537,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.9.1"
|
||||
"version": "3.8.16"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
Reference in New Issue
Block a user