{"id":15992642,"url":"https://github.com/yale8848/doris-stream-loader","last_synced_at":"2025-03-17T20:30:23.253Z","repository":{"id":92882529,"uuid":"199626657","full_name":"yale8848/doris-stream-loader","owner":"yale8848","description":"Apache Doris Stream Loader Golang API","archived":false,"fork":false,"pushed_at":"2019-07-31T06:26:14.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T03:40:00.691Z","etag":null,"topics":["apache","api","doris","golang","golang-library","loader","stream"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yale8848.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-30T10:07:03.000Z","updated_at":"2024-03-04T07:29:41.000Z","dependencies_parsed_at":"2023-03-16T06:00:12.065Z","dependency_job_id":null,"html_url":"https://github.com/yale8848/doris-stream-loader","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2Fdoris-stream-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2Fdoris-stream-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2Fdoris-stream-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yale8848%2Fdoris-stream-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yale8848","download_url":"https://codeload.github.com/yale8848/doris-stream-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878483,"owners_count":20362433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","api","doris","golang","golang-library","loader","stream"],"created_at":"2024-10-08T06:40:25.822Z","updated_at":"2025-03-17T20:30:22.982Z","avatar_url":"https://github.com/yale8848.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## [Apache Doris](https://github.com/apache/incubator-doris) Stream Loader Golang API\n\n [Stream-Load-Manual](https://github.com/apache/incubator-doris/wiki/Stream-Load-Manual)  user curl command to load data, [doris-stream-loader](https://github.com/yale8848/doris-stream-loader.git) with Golang API code.\n \n ### Install\n \n ```bash\n    go get github.com/yale8848/doris-stream-loader@v0.1.4\n```\n \n ### API\n \n - Init\n \n  ```go\n    ld:= doris.New(doris.LoadConfig{Host:\"172.16.1.244:8030\",DBName:\"db_dxh\",TableName:\"dxh_log2\",User:\"root\",Password:\"123456\"})\n\n  ```\n \n - Stream Load\n \n ```go\n    res,err:=ld.LoadByFile(\"data.txt\",doris.WithLabel(\"001\"),\n\t\tdoris.WithColumnSeparator(\",\"))\n\tCheckErr(err)\n\tfmt.Printf(\"%+v\\r\\n\",res)\n```\n \n - GET LABEL STATE\n \n ```go\n\n    res,err:=ld.LabelState(\"001\")\n    CheckErr(err)\n    fmt.Printf(\"%+v\\r\\n\",res)\n\n```\n - CANCEL LABEL\n \n \n ```go\n    res,err:=ld.LabelCancel(\"001\")\n    CheckErr(err)\n    fmt.Printf(\"%+v\\r\\n\",res)\n\n```\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyale8848%2Fdoris-stream-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyale8848%2Fdoris-stream-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyale8848%2Fdoris-stream-loader/lists"}